Examples of ICommand


Examples of org.eclipse.core.resources.ICommand

    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];
    }
    newCommands[newCommands.length - 1] = command;
View Full Code Here

Examples of org.eclipse.core.resources.ICommand

      }
    }

    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){
      project.setPersistentProperty(forteRootQualifiedName, System.getenv("FORTE_ROOT"));
View Full Code Here

Examples of org.eclipse.core.resources.ICommand

      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;
      desc.setBuildSpec(nc);
View Full Code Here

Examples of org.eclipse.core.resources.ICommand

      }
    }

    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

Examples of org.eclipse.core.resources.ICommand

      }
    }

    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

Examples of org.eclipse.core.resources.ICommand

    IProjectDescription description = project.getDescription();
    ICommand[] oldBuilders = description.getBuildSpec();
    ICommand[] newBuilders = new ICommand[oldBuilders.length-1];
    int i=0;
    for (int j = 0; j < oldBuilders.length; j++) {
      ICommand aCommand = oldBuilders[j];
      if(!aCommand.getBuilderName().equals(Constants.BUILDER_ID))
        newBuilders[i++] = aCommand;
    }

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

Examples of org.eclipse.core.resources.ICommand

    IProjectDescription description = project.getDescription();
    ICommand[] oldBuilders = description.getBuildSpec();
    ICommand[] newBuilders = new ICommand[oldBuilders.length - 1];
    int i = 0;
    for (int j = 0; j < oldBuilders.length; j++) {
      ICommand aCommand = oldBuilders[j];
      if (!aCommand.getBuilderName().equals(Constants.BUILDER_ID))
        newBuilders[i++] = aCommand;
    }

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

Examples of org.eclipse.core.resources.ICommand

      }
    }

    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

Examples of org.eclipse.core.resources.ICommand

        subM.worked(sub_work);
      }
      work /= 2;
    }

    ICommand xvrBuilder = XVRUtils.getXVRBuilderCommand(p);
    Map<String, String> args = XVRUtils.getBuilderArgs(p);
    args.put(XVRConstants.BUILD_MODE, mode);
    xvrBuilder.setArguments(args);

    p.build(IncrementalProjectBuilder.FULL_BUILD, xvrBuilder.getBuilderName(), xvrBuilder.getArguments(), subM.newChild(work));
    subM.worked(work);
  }
View Full Code Here

Examples of org.eclipse.core.resources.ICommand

      throw new ExecutionException("Error while retrieving the project description: " + e.getMessage());
    }
   
    ICommand[] commands = desc.getBuildSpec();
    boolean found = false;
    ICommand builder = null;
    ArrayList<ICommand> list = new ArrayList<ICommand>();
   
    for (int i = 0; i < commands.length; ++i){
      if ((found = commands[i].getBuilderName().equals(XVRBuilder.BUILDER_ID)))
        builder = commands[i];
      else
        list.add(commands[i]);
    }
    if(!found)
      throw new ExecutionException("Builder not found while setting main file");
   
   
    Map<String, String> arg = builder.getArguments();
   
    IResource res = (IResource)((IAdaptable) element).getAdapter(IResource.class);
    //String location = res.getProjectRelativePath().toString();//OSString();
    String location = res.getProjectRelativePath().toOSString();
    arg.put(XVRProjectSupport.ARG_MAIN_KEY, location);
    builder.setArguments(arg);
    list.add(builder);
    desc.setBuildSpec(list.toArray(new ICommand[list.size()]));
    try {
      prj.setDescription(desc,(IProject.KEEP_HISTORY | IProject.AVOID_NATURE_CONFIG), null);
    } catch (CoreException e) {
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.