Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProjectDescription.newCommand()


    int javaCommandIndex = getJavaCommandIndex(description.getBuildSpec());

    if (javaCommandIndex == -1) {

      // Add a Java command to the build spec
      ICommand command = description.newCommand();
      command.setBuilderName(builderID);
      setJavaCommand(description, command);
    }
  }
  /**
 
View Full Code Here


    public void configure() throws CoreException {
        if (!hasBuilder()) {
            IProjectDescription description = project.getDescription();
            ICommand[] buildCommands = description.getBuildSpec();
            buildCommands = Arrays.copyOf(buildCommands, buildCommands.length + 1);
            ICommand teaVMCommand = description.newCommand();
            teaVMCommand.setBuilderName(TeaVMEclipsePlugin.BUILDER_ID);
            buildCommands[buildCommands.length - 1] = teaVMCommand;
            description.setBuildSpec(buildCommands);
            project.setDescription(description, new NullProgressMonitor());
        }
View Full Code Here

                return;
            }
        }

        // associate builder with project.
        ICommand newCmd = description.newCommand();
        newCmd.setBuilderName(builderId);
        List<ICommand> newCmds = new ArrayList<ICommand>();
        newCmds.addAll(Arrays.asList(cmds));
        newCmds.add(newCmd);
        description.setBuildSpec(newCmds.toArray(new ICommand[newCmds.size()]));
View Full Code Here

      }
    }

    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 0, commands.length);
    ICommand command = desc.newCommand();
    command.setBuilderName(ClickProjectBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
View Full Code Here

  protected void addToBuildSpec(String builderID) throws CoreException {
    IProjectDescription description = project.getDescription();
    ICommand[] commands = description.getBuildSpec();
    int commandIndex = getCommandIndex(commands, builderID);
    if (commandIndex == -1) {
      ICommand command = description.newCommand();
      command.setBuilderName(builderID);
     
      // Add a build command to the build spec
      ICommand[] newCommands = ArrayUtil.prepend(command, commands);
      description.setBuildSpec(newCommands);
View Full Code Here

      }
    }

    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 0, commands.length);
    ICommand command = desc.newCommand();
    command.setBuilderName(MackerBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
View Full Code Here

    // put the SymfonyBuilder on the first position as we need to
    // parse the xml/yml files before the php sources are being parses
    // so the definitions for ie. services can be resolved.
    System.arraycopy(commands, 0, newCommands, 1, commands.length);
   
    ICommand command = desc.newCommand();
    command.setBuilderName(SymfonyBuilder.BUILDER_ID);
    newCommands[0] = command;
    desc.setBuildSpec(newCommands);
    getProject().setDescription(desc, null);
  }
View Full Code Here

      }
    }

    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 1, commands.length);
    ICommand command = desc.newCommand();
    command.setBuilderName(PPUiConstants.MODULEFILE_BUILDER_ID);
    newCommands[0] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
View Full Code Here

      }
    }

    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 0, commands.length);
    ICommand command = desc.newCommand();
    command.setBuilderName(ComponentBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
View Full Code Here

    IProjectDescription desc = project.getDescription();
    ICommand builderCommand = getProjectBuilderCommand(desc, builderID);
    if (builderCommand == null) {

      // Add a new build spec
      ICommand command = desc.newCommand();
      command.setBuilderName(builderID);

      // Commit the spec change into the project
      addProjectBuilderCommand(desc, command);
      project.setDescription(desc, monitor);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.