org.eclipse.xtext.ui.util
Class FeatureProjectFactory

java.lang.Object
  extended by org.eclipse.xtext.ui.util.ProjectFactory
      extended by org.eclipse.xtext.ui.util.FeatureProjectFactory

public class FeatureProjectFactory
extends ProjectFactory

Creates a simple feature project.
Created project contains .project, build.properties and feature.xml files
Plugin entries can be added using addBundle(String) method.

Since:
2.3
Author:
Dennis Huebner - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.xtext.ui.util.ProjectFactory
builderIds, folders, location, projectName, projectNatures, referencedProjects, workbench, workingSets, workspace
 
Constructor Summary
FeatureProjectFactory()
           
 
Method Summary
 FeatureProjectFactory addBundle(java.lang.String bundleId)
          Adds a new plugin entry
 FeatureProjectFactory addFeature(java.lang.String featureId)
          Adds a new included feature entry
protected  void enhanceProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.SubMonitor subMonitor, org.eclipse.swt.widgets.Shell shell)
           
 void setFeatureLabel(java.lang.String label)
           
 FeatureProjectFactory withCategoryFile(java.lang.String mainCategoryName)
           
 
Methods inherited from class org.eclipse.xtext.ui.util.ProjectFactory
addBuilderIds, addContributor, addFolders, addProjectNatures, addReferencedProjects, addWorkingSets, createFile, createFolders, createProject, createProjectDescription, createRecursive, deleteExistingProject, setBuilder, setLocation, setProjectName, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureProjectFactory

public FeatureProjectFactory()
Method Detail

setFeatureLabel

public void setFeatureLabel(java.lang.String label)

addBundle

public FeatureProjectFactory addBundle(java.lang.String bundleId)
Adds a new plugin entry


addFeature

public FeatureProjectFactory addFeature(java.lang.String featureId)
Adds a new included feature entry


withCategoryFile

public FeatureProjectFactory withCategoryFile(java.lang.String mainCategoryName)
Parameters:
mainCategoryName - If not null or empty a category.xml will be created

enhanceProject

protected void enhanceProject(org.eclipse.core.resources.IProject project,
                              org.eclipse.core.runtime.SubMonitor subMonitor,
                              org.eclipse.swt.widgets.Shell shell)
                       throws org.eclipse.core.runtime.CoreException
Overrides:
enhanceProject in class ProjectFactory
Throws:
org.eclipse.core.runtime.CoreException