Examples of newCommand()


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

    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

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(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.IProjectDescription.newCommand()

    Assert.assertNotNull(main_html);
    Assert.assertNotNull(main_s3d);

    //add builder to project
    ICommand command = desc.newCommand();
    command.setBuilderName(XVRBuilder.BUILDER_ID);
    //Here we have to create builder command arguments(compiler and include locations)
    Map<String, String> args = new HashMap<String, String>();
    args.put(ARG_COMPILER_KEY, ARG_COMPILER_VAL);
    args.put(ARG_INCLUDE_KEY, ARG_INCLUDE_VAL);
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(XVRBuilder.BUILDER_ID);
      //Here we have to create builder command arguments(compiler and include locations)
      Map<String, String> args = new HashMap<String, String>();
      args.put(ARG_COMPILER_KEY, ARG_COMPILER_VAL);
      args.put(ARG_INCLUDE_KEY, ARG_INCLUDE_VAL);
View Full Code Here

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

      }
    }

    if (!found)
    {
      ICommand newCommand = description.newCommand();
      newCommand.setBuilderName(name);
      if (argumentKey != null && argumentValue != null)
      {
        @SuppressWarnings("rawtypes")
        Map arguments = new HashMap<String, String>();
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(DynamicPluginBuilder.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()

      }
    }

    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 0, commands.length);
    ICommand command = desc.newCommand();
    command.setBuilderName(DynamicWebBuilder.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()

    }
   
    ICommand[] newCommands = new ICommand[commands.length + 1];
    System.arraycopy(commands, 0, newCommands, 0, commands.length);
   
    ICommand newBuilder = description.newCommand();
    newBuilder.setBuilderName(Activator.OPENEJB_BUILDER);
    newCommands[commands.length] = newBuilder;
    description.setBuildSpec(newCommands);
    project.setDescription(description, null);
  }
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(BndBuilder.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(BuilderUtilities.BUILDER_ID);
      ICommand[] newCommands = new ICommand[commands.length + 1];
      // Add it before other builders.
      System.arraycopy(commands, 0, newCommands, 1, commands.length);
      newCommands[0] = command;
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.