org.eclipse.xtext.ui.junit.util
Class IResourcesSetupUtil
java.lang.Object
org.eclipse.xtext.ui.junit.util.IResourcesSetupUtil
public class IResourcesSetupUtil
- extends java.lang.Object
Method Summary |
static void |
addNature(org.eclipse.core.resources.IProject project,
java.lang.String nature)
|
static void |
cleanBuild()
|
static void |
cleanWorkspace()
|
static org.eclipse.core.resources.IFile |
createFile(org.eclipse.core.runtime.IPath wsRelativePath,
java.lang.String s)
|
static org.eclipse.core.resources.IFile |
createFile(java.lang.String wsRelativePath,
java.lang.String s)
|
static org.eclipse.core.resources.IFolder |
createFolder(org.eclipse.core.runtime.IPath wsRelativePath)
|
static org.eclipse.core.resources.IFolder |
createFolder(java.lang.String wsRelativePath)
|
static org.eclipse.core.resources.IProject |
createProject(org.eclipse.core.resources.IProject project)
|
static org.eclipse.core.resources.IProject |
createProject(java.lang.String name)
|
protected static void |
deleteProjects(org.eclipse.core.resources.IProject[] projects)
|
static org.eclipse.core.resources.IResource |
file(java.lang.String path)
|
static void |
fullBuild()
|
static org.eclipse.core.runtime.IProgressMonitor |
monitor()
|
static java.lang.String |
printMarker(org.eclipse.core.resources.IMarker[] markers)
|
static void |
removeNature(org.eclipse.core.resources.IProject project,
java.lang.String nature)
|
static void |
removeReference(org.eclipse.core.resources.IProject from,
org.eclipse.core.resources.IProject to)
|
static org.eclipse.core.resources.IWorkspaceRoot |
root()
|
static void |
setReference(org.eclipse.core.resources.IProject from,
org.eclipse.core.resources.IProject to)
|
static void |
waitForAutoBuild()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IResourcesSetupUtil
public IResourcesSetupUtil()
root
public static org.eclipse.core.resources.IWorkspaceRoot root()
createProject
public static org.eclipse.core.resources.IProject createProject(java.lang.String name)
throws org.eclipse.core.runtime.CoreException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
createProject
public static org.eclipse.core.resources.IProject createProject(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
addNature
public static void addNature(org.eclipse.core.resources.IProject project,
java.lang.String nature)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
removeNature
public static void removeNature(org.eclipse.core.resources.IProject project,
java.lang.String nature)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
setReference
public static void setReference(org.eclipse.core.resources.IProject from,
org.eclipse.core.resources.IProject to)
throws org.eclipse.core.runtime.CoreException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
removeReference
public static void removeReference(org.eclipse.core.resources.IProject from,
org.eclipse.core.resources.IProject to)
throws org.eclipse.core.runtime.CoreException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
createFolder
public static org.eclipse.core.resources.IFolder createFolder(java.lang.String wsRelativePath)
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
createFolder
public static org.eclipse.core.resources.IFolder createFolder(org.eclipse.core.runtime.IPath wsRelativePath)
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
createFile
public static org.eclipse.core.resources.IFile createFile(java.lang.String wsRelativePath,
java.lang.String s)
throws org.eclipse.core.runtime.CoreException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
createFile
public static org.eclipse.core.resources.IFile createFile(org.eclipse.core.runtime.IPath wsRelativePath,
java.lang.String s)
throws org.eclipse.core.runtime.CoreException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
file
public static org.eclipse.core.resources.IResource file(java.lang.String path)
monitor
public static org.eclipse.core.runtime.IProgressMonitor monitor()
fullBuild
public static void fullBuild()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
cleanBuild
public static void cleanBuild()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
waitForAutoBuild
public static void waitForAutoBuild()
cleanWorkspace
public static void cleanWorkspace()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
deleteProjects
protected static void deleteProjects(org.eclipse.core.resources.IProject[] projects)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
printMarker
public static java.lang.String printMarker(org.eclipse.core.resources.IMarker[] markers)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException