org.eclipse.xtext.ui.util
Class FeatureProjectFactory
java.lang.Object
org.eclipse.xtext.ui.util.ProjectFactory
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
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 |
FeatureProjectFactory
public FeatureProjectFactory()
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