org.eclipse.mylar.java.tests.search
Class WorkspaceSetupHelper
java.lang.Object
org.eclipse.mylar.java.tests.search.WorkspaceSetupHelper
public class WorkspaceSetupHelper
- extends java.lang.Object
Method Summary |
static void |
clearDoiModel()
|
static void |
clearWorkspace()
|
static org.eclipse.mylar.internal.context.core.MylarContext |
getContext()
|
static org.eclipse.core.resources.IFile |
getFile(org.eclipse.jdt.core.IJavaProject jp,
java.lang.String name)
|
static org.eclipse.jdt.core.IJavaProject |
getJdtCoreDomProject()
|
static org.eclipse.jdt.core.IMethod |
getMethod(org.eclipse.jdt.core.IType t,
java.lang.String methodName,
java.lang.String[] params)
|
static org.eclipse.jdt.core.IJavaProject |
getProject1()
|
static org.eclipse.jdt.core.IJavaProject |
getProject2()
|
static org.eclipse.jdt.core.IType |
getType(org.eclipse.jdt.core.IJavaProject jp,
java.lang.String fullyQualifiedName)
|
static org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot()
|
static org.eclipse.core.resources.IWorkspaceRoot |
setupWorkspace()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HELPER_CONTEXT_ID
private static final java.lang.String HELPER_CONTEXT_ID
- See Also:
- Constant Field Values
isSetup
private static boolean isSetup
taskscape
private static org.eclipse.mylar.internal.context.core.MylarContext taskscape
project1
private static org.eclipse.jdt.core.IJavaProject project1
project2
private static org.eclipse.jdt.core.IJavaProject project2
jdtCoreDomProject
private static TestJavaProject jdtCoreDomProject
workspaceRoot
private static org.eclipse.core.resources.IWorkspaceRoot workspaceRoot
WorkspaceSetupHelper
public WorkspaceSetupHelper()
clearWorkspace
public static void clearWorkspace()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
setupWorkspace
public static org.eclipse.core.resources.IWorkspaceRoot setupWorkspace()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
clearDoiModel
public static void clearDoiModel()
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getContext
public static org.eclipse.mylar.internal.context.core.MylarContext getContext()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
getJdtCoreDomProject
public static org.eclipse.jdt.core.IJavaProject getJdtCoreDomProject()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
getProject1
public static org.eclipse.jdt.core.IJavaProject getProject1()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
getProject2
public static org.eclipse.jdt.core.IJavaProject getProject2()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
getWorkspaceRoot
public static org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
throws org.eclipse.core.runtime.CoreException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
org.eclipse.core.runtime.CoreException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
getFile
public static org.eclipse.core.resources.IFile getFile(org.eclipse.jdt.core.IJavaProject jp,
java.lang.String name)
throws org.eclipse.jdt.core.JavaModelException
- Throws:
org.eclipse.jdt.core.JavaModelException
getType
public static org.eclipse.jdt.core.IType getType(org.eclipse.jdt.core.IJavaProject jp,
java.lang.String fullyQualifiedName)
throws org.eclipse.jdt.core.JavaModelException
- Throws:
org.eclipse.jdt.core.JavaModelException
getMethod
public static org.eclipse.jdt.core.IMethod getMethod(org.eclipse.jdt.core.IType t,
java.lang.String methodName,
java.lang.String[] params)