Package org.eclipse.core.internal.events

Examples of org.eclipse.core.internal.events.BuildCommand


  /* (non-Javadoc)
   * @see IProjectDescription#newCommand()
   */
  public ICommand newCommand() {
    return new BuildCommand();
  }
View Full Code Here


   * End of an element that is part of a build command
   */
  private void endBuildCommandElement(String elementName) {
    if (elementName.equals(BUILD_COMMAND)) {
      // Pop this BuildCommand off the stack.
      BuildCommand command = (BuildCommand) objectStack.pop();
      // Add this BuildCommand to a array list of BuildCommands.
      ArrayList commandList = (ArrayList) objectStack.peek();
      commandList.add(command);
      state = S_BUILD_SPEC;
    }
View Full Code Here

   * build command element.
   */
  private void endBuildTriggersElement(String elementName) {
    if (elementName.equals(BUILD_TRIGGERS)) {
      state = S_BUILD_COMMAND;
      BuildCommand command = (BuildCommand) objectStack.peek();
      //presence of this element indicates the builder is configurable
      command.setConfigurable(true);
      //clear all existing values
      command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.FULL_BUILD, false);
      command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, false);

      //set new values according to value in the triggers element
      StringTokenizer tokens = new StringTokenizer(charBuffer.toString(), ","); //$NON-NLS-1$
      while (tokens.hasMoreTokens()) {
        String next = tokens.nextToken();
        if (next.toLowerCase().equals(TRIGGER_AUTO)) {
          command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_CLEAN)) {
          command.setBuilding(IncrementalProjectBuilder.CLEAN_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_FULL)) {
          command.setBuilding(IncrementalProjectBuilder.FULL_BUILD, true);
        } else if (next.toLowerCase().equals(TRIGGER_INCREMENTAL)) {
          command.setBuilding(IncrementalProjectBuilder.INCREMENTAL_BUILD, true);
        }
      }
    }
  }
View Full Code Here

        }
        break;
      case S_BUILD_SPEC :
        if (elementName.equals(BUILD_COMMAND)) {
          state = S_BUILD_COMMAND;
          objectStack.push(new BuildCommand());
        }
        break;
      case S_BUILD_COMMAND :
        if (elementName.equals(NAME)) {
          state = S_BUILD_COMMAND_NAME;
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.events.BuildCommand

Copyright © 2018 www.massapicom. 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.