Package org.eclipse.core.resources

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


            if (commands[i].getBuilderName().equals(BUILDER_ID)) {
                found = true;
            }
        }
        if (!found) {
            ICommand command = desc.newCommand();
            command.setBuilderName(BUILDER_ID);
            ICommand[] newCommands = new ICommand[commands.length + 1];

            // Add it before other builders.
            System.arraycopy(commands, 0, newCommands, 1, commands.length);
View Full Code Here


        javaProject.setOutputLocation(binFolder.getFullPath(), null);
    }

    private void addJavaBuilder(IJavaProject javaProject) throws CoreException {
        IProjectDescription desc = javaProject.getProject().getDescription();
        ICommand command = desc.newCommand();
        command.setBuilderName(JavaCore.BUILDER_ID);
        desc.setBuildSpec(new ICommand[] { command });
        javaProject.getProject().setDescription(desc, null);
    }
View Full Code Here

    for(int i=0;i<commands.length;i++){
      if(commands[i].getBuilderName().equals(HTML_BUILDER_ID)){
        return;
      }
    }
    ICommand command = desc.newCommand();
    command.setBuilderName(HTML_BUILDER_ID);
    ICommand[] newCommands = new ICommand[commands.length + 1];
    for(int i=0;i<commands.length;i++){
      newCommands[i] = commands[i];
    }
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(FscriptBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
    if (project.getPersistentProperty(forteRootQualifiedName) == null){
View Full Code Here

      ICommand[] commands = desc.getBuildSpec();
      for (int i = 0; i < commands.length; ++i)
        if (commands[i].getBuilderName().equals(id))
          return;
      //add builder to project
      ICommand command = desc.newCommand();
      command.setBuilderName(id);
      ICommand[] nc = new ICommand[commands.length + 1];
      // Add it before other builders.
      System.arraycopy(commands, 0, nc, 1, commands.length);
      nc[0] = command;
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(ToolBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = 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(QWickieBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
View Full Code Here

   
    IProjectDescription description = 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);

    project.setDescription(description, IResource.FORCE, null);
View Full Code Here

    IProjectDescription description = 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);

    project.setDescription(description, IResource.FORCE, 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(FscriptBuilder.BUILDER_ID);
    newCommands[newCommands.length - 1] = command;
    desc.setBuildSpec(newCommands);
    project.setDescription(desc, null);
  }
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.