public class ProjectFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
builderIds |
protected java.lang.String |
defaultCharset |
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 |
Constructor and Description |
---|
ProjectFactory() |
Modifier and Type | Method and Description |
---|---|
ProjectFactory |
addBuilderIds(java.lang.String... builderIds) |
void |
addContributor(IProjectFactoryContributor projectFactoryContributor) |
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) |
void |
setProjectDefaultCharset(java.lang.String encoding) |
ProjectFactory |
setProjectName(java.lang.String projectName) |
protected org.eclipse.core.resources.IFile |
writeToFile(java.lang.CharSequence chrSeq,
java.lang.String fileName,
org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor progrMonitor)
Shortcut method to be used with Xtend rich strings
|
@Inject(optional=true) protected org.eclipse.ui.IWorkbench workbench
@Inject protected org.eclipse.core.resources.IWorkspace workspace
protected java.lang.String projectName
protected org.eclipse.core.runtime.IPath location
protected java.util.List<java.lang.String> folders
protected java.util.List<org.eclipse.core.resources.IProject> referencedProjects
protected java.util.List<java.lang.String> projectNatures
protected java.util.List<java.lang.String> builderIds
protected java.util.List<org.eclipse.ui.IWorkingSet> workingSets
protected java.lang.String defaultCharset
public ProjectFactory addBuilderIds(java.lang.String... builderIds)
public ProjectFactory addProjectNatures(java.lang.String... projectNatures)
public ProjectFactory setProjectName(java.lang.String projectName)
public ProjectFactory setLocation(org.eclipse.core.runtime.IPath location)
public ProjectFactory addFolders(java.util.List<java.lang.String> folders)
public ProjectFactory addReferencedProjects(java.util.List<org.eclipse.core.resources.IProject> referencedProjects)
public ProjectFactory addWorkingSets(java.util.List<org.eclipse.ui.IWorkingSet> workingSets)
public void addContributor(IProjectFactoryContributor projectFactoryContributor)
public void setProjectDefaultCharset(java.lang.String encoding)
public org.eclipse.core.resources.IProject createProject(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.swt.widgets.Shell shell)
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
org.eclipse.core.runtime.CoreException
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
org.eclipse.core.runtime.CoreException
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
org.eclipse.core.runtime.CoreException
protected org.eclipse.core.resources.IProjectDescription createProjectDescription()
protected void setBuilder(org.eclipse.core.resources.IProjectDescription projectDescription, java.lang.String[] builders)
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 org.eclipse.core.resources.IFile writeToFile(java.lang.CharSequence chrSeq, java.lang.String fileName, org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor progrMonitor)
protected void createRecursive(org.eclipse.core.resources.IContainer resource)