public class JREContainerInitializer
extends ClasspathContainerInitializer
| Constructor and Description |
|---|
JREContainerInitializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canUpdateClasspathContainer(IPath containerPath,
IJavaProject project)
The container can be updated if it refers to an existing VM.
|
static java.lang.String |
decodeEnvironmentId(java.lang.String id) |
static java.lang.String |
encodeEnvironmentId(java.lang.String id)
Escapes forward slashes in environment id.
|
IStatus |
getAccessRulesStatus(IPath containerPath,
IJavaProject project) |
IStatus |
getAttributeStatus(IPath containerPath,
IJavaProject project,
java.lang.String attributeKey) |
java.lang.String |
getDescription(IPath containerPath,
IJavaProject project) |
static java.lang.String |
getExecutionEnvironmentId(IPath path)
Returns the segment from the path containing the execution environment id
or
null |
IStatus |
getSourceAttachmentStatus(IPath containerPath,
IJavaProject project) |
static java.lang.String |
getVMName(IPath path)
Returns the VM name from the given container ID path.
|
static java.lang.String |
getVMTypeId(IPath path)
Returns the VM type identifier from the given container ID path.
|
void |
initialize(IPath containerPath,
IJavaProject project) |
void |
initialize(IPath containerPath,
IJavaProject[] projects)
Sets the specified class path container for all of the given projects.
|
static boolean |
isExecutionEnvironment(IPath path)
Returns whether the given path identifies a VM by execution environment.
|
void |
requestClasspathContainerUpdate(IPath containerPath,
IJavaProject project,
IClasspathContainer containerSuggestion) |
static IVMInstall |
resolveVM(IPath containerPath)
Returns the VM install associated with the container path, or
null
if it does not exist. |
public void initialize(IPath containerPath,
IJavaProject project)
throws CoreException
CoreExceptionClasspathContainerInitializer#initialize(IPath, IJavaProject)public void initialize(IPath containerPath,
IJavaProject[] projects)
throws CoreException
containerPath - JRE container pathprojects - projects set the container onCoreException - on failurepublic static IVMInstall resolveVM(IPath containerPath)
null
if it does not exist.containerPath - the path to the containerIVMInstall or nullpublic static java.lang.String getExecutionEnvironmentId(IPath path)
nullpath - container pathpublic static boolean isExecutionEnvironment(IPath path)
path - the pathpublic static java.lang.String encodeEnvironmentId(java.lang.String id)
id - the environment idpublic static java.lang.String decodeEnvironmentId(java.lang.String id)
public static java.lang.String getVMTypeId(IPath path)
path - the pathpublic static java.lang.String getVMName(IPath path)
path - the pathpublic boolean canUpdateClasspathContainer(IPath containerPath,
IJavaProject project)
org.eclipse.jdt.core.ClasspathContainerInitializer#canUpdateClasspathContainer(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject)public IStatus getAccessRulesStatus(IPath containerPath,
IJavaProject project)
public IStatus getSourceAttachmentStatus(IPath containerPath,
IJavaProject project)
public IStatus getAttributeStatus(IPath containerPath,
IJavaProject project,
java.lang.String attributeKey)
public void requestClasspathContainerUpdate(IPath containerPath,
IJavaProject project,
IClasspathContainer containerSuggestion)
throws CoreException
CoreExceptionorg.eclipse.jdt.core.ClasspathContainerInitializer#requestClasspathContainerUpdate(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject, org.eclipse.jdt.core.IClasspathContainer)public java.lang.String getDescription(IPath containerPath,
IJavaProject project)
org.eclipse.jdt.core.ClasspathContainerInitializer#getDescription(org.eclipse.core.runtime.IPath, org.eclipse.jdt.core.IJavaProject)