public class IResourcesSetupUtil
extends java.lang.Object
Constructor and Description |
---|
IResourcesSetupUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addBuilder(org.eclipse.core.resources.IProject project,
java.lang.String builderId) |
static void |
addNature(org.eclipse.core.resources.IProject project,
java.lang.String nature) |
static void |
assertNoErrorsInWorkspace() |
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 boolean |
fileIsEmpty(org.eclipse.core.resources.IFile file) |
static byte[] |
fileToByteArray(org.eclipse.core.resources.IFile file) |
static java.lang.String |
fileToString(org.eclipse.core.resources.IFile file) |
static void |
fullBuild() |
static org.eclipse.core.runtime.IProgressMonitor |
monitor() |
static java.lang.String |
printMarker(org.eclipse.core.resources.IMarker[] markers) |
static void |
reallyWaitForAutoBuild()
A test that really should test the mechanism including the delay
after the resource change event, could wait for the auto build.
|
static void |
removeBuilder(org.eclipse.core.resources.IProject project,
java.lang.String builderId) |
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()
Deprecated.
clients should use
waitForBuild() since it is much faster. Clients that really depend
on the delay before the build can use reallyWaitForAutoBuild() . |
static void |
waitForBuild() |
static void |
waitForBuild(org.eclipse.core.runtime.IProgressMonitor monitor) |
public static org.eclipse.core.resources.IWorkspaceRoot root()
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
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static org.eclipse.core.resources.IProject createProject(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void assertNoErrorsInWorkspace() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void addNature(org.eclipse.core.resources.IProject project, java.lang.String nature) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void addBuilder(org.eclipse.core.resources.IProject project, java.lang.String builderId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void removeNature(org.eclipse.core.resources.IProject project, java.lang.String nature) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void removeBuilder(org.eclipse.core.resources.IProject project, java.lang.String builderId) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
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
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
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
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static org.eclipse.core.resources.IFolder createFolder(java.lang.String wsRelativePath) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static org.eclipse.core.resources.IFolder createFolder(org.eclipse.core.runtime.IPath wsRelativePath) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
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
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
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
org.eclipse.core.runtime.CoreException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public static org.eclipse.core.resources.IResource file(java.lang.String path)
public static byte[] fileToByteArray(org.eclipse.core.resources.IFile file) throws org.eclipse.core.runtime.CoreException, java.io.IOException
org.eclipse.core.runtime.CoreException
java.io.IOException
public static java.lang.String fileToString(org.eclipse.core.resources.IFile file) throws org.eclipse.core.runtime.CoreException, java.io.IOException
org.eclipse.core.runtime.CoreException
java.io.IOException
public static boolean fileIsEmpty(org.eclipse.core.resources.IFile file) throws java.io.IOException, org.eclipse.core.runtime.CoreException
java.io.IOException
org.eclipse.core.runtime.CoreException
public static org.eclipse.core.runtime.IProgressMonitor monitor()
public static void fullBuild() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void cleanBuild() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
@Deprecated public static void waitForAutoBuild()
waitForBuild()
since it is much faster. Clients that really depend
on the delay before the build can use reallyWaitForAutoBuild()
.public static void reallyWaitForAutoBuild()
public static void waitForBuild()
public static void waitForBuild(org.eclipse.core.runtime.IProgressMonitor monitor)
public static void cleanWorkspace() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
protected static void deleteProjects(org.eclipse.core.resources.IProject[] projects) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static java.lang.String printMarker(org.eclipse.core.resources.IMarker[] markers) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException