示例#1
0
 protected void configureFeatureProjectFactory(FeatureProjectFactory factory) {
   factory.setProjectName(getXtextProjectInfo().getFeatureProjectName());
   factory.setLocation(getXtextProjectInfo().getFeatureProjectLocation());
   factory.setFeatureLabel(
       String.format(
           Messages.XtextProjectCreator_FeatureLabel,
           getXtextProjectInfo().getLanguageNameAbbreviation()));
   factory.addProjectNatures("org.eclipse.pde.FeatureNature");
   factory.addBuilderIds("org.eclipse.pde.FeatureBuilder");
   factory.addBundle(getXtextProjectInfo().getProjectName());
   factory.addBundle(getXtextProjectInfo().getUiProjectName());
   factory.addWorkingSets(Arrays.asList(getXtextProjectInfo().getWorkingSets()));
 }
示例#2
0
 protected IProject createFeatureProject(SubMonitor monitor) throws CoreException {
   FeatureProjectFactory factory = createFeatureFactory();
   configureFeatureProjectFactory(factory);
   return factory.createProject(monitor, null);
 }