org.eclipse.xtext.ui.util
Class ProjectFactory
java.lang.Object
org.eclipse.xtext.ui.util.ProjectFactory
- Direct Known Subclasses:
- JavaProjectFactory
public class ProjectFactory
- extends java.lang.Object
- Author:
- Holger Schill - Initial contribution and API, Sebastian Zarnekow
Field Summary |
protected java.util.List<java.lang.String> |
builderIds
|
protected java.util.List<java.lang.String> |
folders
|
protected org.eclipse.core.runtime.IPath |
location
|
protected java.lang.String |
projectName
|
protected java.util.List<java.lang.String> |
projectNatures
|
protected java.util.List<org.eclipse.core.resources.IProject> |
referencedProjects
|
protected org.eclipse.ui.IWorkbench |
workbench
|
protected java.util.List<org.eclipse.ui.IWorkingSet> |
workingSets
|
protected org.eclipse.core.resources.IWorkspace |
workspace
|
Method Summary |
ProjectFactory |
addBuilderIds(java.lang.String... builderIds)
|
ProjectFactory |
addFolders(java.util.List<java.lang.String> folders)
|
ProjectFactory |
addProjectNatures(java.lang.String... projectNatures)
|
ProjectFactory |
addReferencedProjects(java.util.List<org.eclipse.core.resources.IProject> referencedProjects)
|
ProjectFactory |
addWorkingSets(java.util.List<org.eclipse.ui.IWorkingSet> workingSets)
|
protected org.eclipse.core.resources.IFile |
createFile(java.lang.String name,
org.eclipse.core.resources.IContainer container,
java.lang.String content,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
|
protected void |
createFolders(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.SubMonitor subMonitor,
org.eclipse.swt.widgets.Shell shell)
|
org.eclipse.core.resources.IProject |
createProject(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.swt.widgets.Shell shell)
|
protected org.eclipse.core.resources.IProjectDescription |
createProjectDescription()
|
protected void |
createRecursive(org.eclipse.core.resources.IContainer resource)
|
protected boolean |
deleteExistingProject(org.eclipse.core.resources.IProject project,
org.eclipse.swt.widgets.Shell theShell,
org.eclipse.core.runtime.SubMonitor subMonitor)
|
protected void |
enhanceProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.SubMonitor subMonitor,
org.eclipse.swt.widgets.Shell shell)
|
protected void |
setBuilder(org.eclipse.core.resources.IProjectDescription projectDescription,
java.lang.String[] builders)
|
ProjectFactory |
setLocation(org.eclipse.core.runtime.IPath location)
|
ProjectFactory |
setProjectName(java.lang.String projectName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
workbench
@Inject(optional=true)
protected org.eclipse.ui.IWorkbench workbench
workspace
@Inject
protected org.eclipse.core.resources.IWorkspace workspace
projectName
protected java.lang.String projectName
location
protected org.eclipse.core.runtime.IPath location
folders
protected java.util.List<java.lang.String> folders
referencedProjects
protected java.util.List<org.eclipse.core.resources.IProject> referencedProjects
projectNatures
protected java.util.List<java.lang.String> projectNatures
builderIds
protected java.util.List<java.lang.String> builderIds
workingSets
protected java.util.List<org.eclipse.ui.IWorkingSet> workingSets
ProjectFactory
public ProjectFactory()
addBuilderIds
public ProjectFactory addBuilderIds(java.lang.String... builderIds)
addProjectNatures
public ProjectFactory addProjectNatures(java.lang.String... projectNatures)
setProjectName
public ProjectFactory setProjectName(java.lang.String projectName)
setLocation
public ProjectFactory setLocation(org.eclipse.core.runtime.IPath location)
addFolders
public ProjectFactory addFolders(java.util.List<java.lang.String> folders)
addReferencedProjects
public ProjectFactory addReferencedProjects(java.util.List<org.eclipse.core.resources.IProject> referencedProjects)
addWorkingSets
public ProjectFactory addWorkingSets(java.util.List<org.eclipse.ui.IWorkingSet> workingSets)
createProject
public org.eclipse.core.resources.IProject createProject(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.swt.widgets.Shell shell)
createFolders
protected void createFolders(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.SubMonitor subMonitor,
org.eclipse.swt.widgets.Shell shell)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
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
- Throws:
org.eclipse.core.runtime.CoreException
deleteExistingProject
protected boolean deleteExistingProject(org.eclipse.core.resources.IProject project,
org.eclipse.swt.widgets.Shell theShell,
org.eclipse.core.runtime.SubMonitor subMonitor)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
createProjectDescription
protected org.eclipse.core.resources.IProjectDescription createProjectDescription()
setBuilder
protected void setBuilder(org.eclipse.core.resources.IProjectDescription projectDescription,
java.lang.String[] builders)
createFile
protected org.eclipse.core.resources.IFile createFile(java.lang.String name,
org.eclipse.core.resources.IContainer container,
java.lang.String content,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
createRecursive
protected void createRecursive(org.eclipse.core.resources.IContainer resource)