Examples of newCommand()


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

      }
    }

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

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

    IProjectDescription description = m_project.getDescription();
    ICommand[] oldBuilders = description.getBuildSpec();
    //
    ICommand[] newBuilders = new ICommand[oldBuilders.length + 1];
    System.arraycopy(oldBuilders, 0, newBuilders, 1, oldBuilders.length);
    newBuilders[0] = description.newCommand();
    newBuilders[0].setBuilderName(Constants.BUILDER_ID);
    //
    description.setBuildSpec(newBuilders);
    m_project.setDescription(description, IResource.FORCE, null);
  }
View Full Code Here

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

    protected void addToBuildSpec(String builderID) throws CoreException {
        IProjectDescription description = getProject().getDescription();
        ICommand findBugsCommand = getFindBugsCommand(description);
        if (findBugsCommand == null) {
            // Add a Java command to the build spec
            ICommand newCommand = description.newCommand();
            newCommand.setBuilderName(builderID);
            setFindBugsCommand(description, newCommand);
        }
    }
View Full Code Here

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

      if(cmd.getBuilderName().equals(BUILDER_ID)) {
        return;
      }
    }
   
    ICommand newCmd = description.newCommand();
    newCmd.setBuilderName(BUILDER_ID);
    List<ICommand> newCmds = new LinkedList<ICommand>();
   
    newCmds.addAll(Arrays.asList(cmds));
    newCmds.add(newCmd);
View Full Code Here

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

      }
    }

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

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

             break;
          }
       }
       if (!found) {
          //add builder to project
          ICommand command = desc.newCommand();
          command.setBuilderName(BUILDER_ID);
          ICommand[] newCommands = new ICommand[commands.length];

          newCommands[0] = command;
          desc.setBuildSpec(newCommands);
View Full Code Here

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

      return;
    }

    // install builder
    IProjectDescription description = project.getDescription();
    final ICommand buildCommand = description.newCommand();
    buildCommand.setBuilderName(ComposerBuildPathManagementBuilder.ID);

    final List<ICommand> commands = new ArrayList<ICommand>();
    commands.add(buildCommand);
    commands.addAll(Arrays.asList(description.getBuildSpec()));
View Full Code Here

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

      }
    }

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

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

      commandList.add(command);
    }       
    //if no hdl command was found
    if(hdlCommand==null){
      //make a new one
      hdlCommand = description.newCommand();
      hdlCommand.setBuilderName(SIMULATOR_ID);
      //add it to the list of builders
      commandList.add(hdlCommand);
      //set the arguments
      Map<String,String> args=BuildConfig.encodeArgs(new BuildConfig[]{new BuildConfig()});
View Full Code Here

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

        if (coms[i].getBuilderName().equals(aBuilder)) {
          foundJBuilder = true;
        }
      }
      if (!foundJBuilder) {
        command = desc.newCommand();
        command.setBuilderName(aBuilder);
        newIc = new ICommand[coms.length + 1];
        System.arraycopy(coms, 0, newIc, 0, coms.length);
        newIc[coms.length] = command;
        desc.setBuildSpec(newIc);
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.