/** * Find the specific Java command amongst the given build spec * and return its index or -1 if not found. */ private int getJavaCommandIndex(ICommand[] buildSpec) { for (int i = 0; i < buildSpec.length; ++i) { if (buildSpec[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { return i; } } return -1; }
@Override public boolean apply(ICommand command) { return !command.getBuilderName().equals(ID); } }).toArray(ICommand.class);
@Override public boolean apply(ICommand command) { return !command.getBuilderName().equals(name); } }).toList();
@Override public boolean apply(ICommand command) { return command.getBuilderName().equals(ID); } });
/** * Find the specific Java command amongst the given build spec * and return its index or -1 if not found. */ private int getJavaCommandIndex(ICommand[] buildSpec) { for (int i = 0; i < buildSpec.length; ++i) { if (buildSpec[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { return i; } } return -1; }
/** * Find the specific Java command amongst the given build spec * and return its index or -1 if not found. */ private int getJavaCommandIndex(ICommand[] buildSpec) { for (int i = 0; i < buildSpec.length; ++i) { if (buildSpec[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { return i; } } return -1; }
/** * Find the specific Java command amongst the given build spec * and return its index or -1 if not found. */ private int getJavaCommandIndex(ICommand[] buildSpec) { for (int i = 0; i < buildSpec.length; ++i) { if (buildSpec[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { return i; } } return -1; }
/** * Find the specific Java command amongst the given build spec * and return its index or -1 if not found. */ private int getJavaCommandIndex(ICommand[] buildSpec) { for (int i = 0; i < buildSpec.length; ++i) { if (buildSpec[i].getBuilderName().equals(JavaCore.BUILDER_ID)) { return i; } } return -1; }
private boolean hasBuilder(ICommand[] commands, String string) { if(commands == null) return false; if(commands.length == 0) return false; for (ICommand iCommand : commands) { if (iCommand.getBuilderName().equals(string)) return true; } return false; } };
public static boolean isFIDEBuilder(ICommand command) { final String builderName = command.getBuilderName(); return BUILDER_ID.equals(builderName) || MPL_BUILDER_ID.equals(builderName); }
private ICommand getBuilderCommand(IProjectDescription description, String builderId) throws CoreException { ICommand[] commands = description.getBuildSpec(); for (int i = 0; i < commands.length; ++i) { if (commands[i].getBuilderName().equals(builderId)) { return commands[i]; } } return null; }
protected ICommand getLibCopyBuilder(IProjectDescription description) throws CoreException { if (description == null) { return null; } ICommand[] commands = description.getBuildSpec(); for (int i = 0; i < commands.length; ++i) { if (commands[i].getBuilderName().equals(LibCopyBuilder.BUILDER_ID)) { return commands[i]; } } return null; }
private ICommand getBuilderCommand(IProjectDescription description, String builderId) { ICommand[] commands = description.getBuildSpec(); for (int i = 0; i < commands.length; ++i) { if (commands[i].getBuilderName().equals(builderId)) { return commands[i]; } } return null; }
private boolean isBuildEnabled(IProject project) { try { for (ICommand command : project.getDescription().getBuildSpec()) { if (XtextBuilder.BUILDER_ID.equals(command.getBuilderName())) { return true; } } } catch (CoreException e) { log.error("Can't build due to an exception.", e); } return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }
private boolean hasJavaBuilder(IProject project) throws CoreException { ICommand[] buildCommands = project.getDescription().getBuildSpec(); for (int i = 0, l = buildCommands.length; i < l; i++) if (buildCommands[i].getBuilderName().equals(JavaCore.BUILDER_ID)) return true; return false; }