public static class CodeGenUtil.EclipseUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CodeGenUtil.EclipseUtil.StreamProgressMonitor |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLUGIN_ID_CLASSPATH_ATTRIBUTE_NAME
An
class path attribute name
that records the originating plugin ID
for each classpath entry created by
addClasspathEntries(Collection, String)
and addClasspathEntries(Collection, String, String) . |
Constructor and Description |
---|
CodeGenUtil.EclipseUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addClasspathEntries(java.util.Collection<IClasspathEntry> classpathEntries,
java.lang.String pluginID) |
static void |
addClasspathEntries(java.util.Collection<IClasspathEntry> classpathEntries,
java.lang.String variableName,
java.lang.String pluginID) |
static Monitor |
createMonitor(IProgressMonitor monitor,
int ticks) |
static IContainer |
findOrCreateContainer(IPath path,
boolean forceRefresh,
IPath localLocation,
IProgressMonitor progressMonitor) |
static IContainer |
findOrCreateContainer(IPath path,
boolean forceRefresh,
IProjectDescription projectDescription,
IProgressMonitor progressMonitor) |
static java.util.List<java.lang.String> |
getClasspathPaths(java.lang.String pluginID) |
static java.lang.String |
getJavaComplianceLevel(IProject project) |
static boolean |
isInJavaOutput(IResource resource) |
static ASTParser |
newASTParser()
Return an ASTParser that supports the latest language level in the version of the JDT in the installed runtime.
|
public static final java.lang.String PLUGIN_ID_CLASSPATH_ATTRIBUTE_NAME
class path attribute name
that records the originating plugin ID
for each classpath entry created by
addClasspathEntries(Collection, String)
and addClasspathEntries(Collection, String, String)
.public static ASTParser newASTParser()
public static boolean isInJavaOutput(IResource resource)
public static java.util.List<java.lang.String> getClasspathPaths(java.lang.String pluginID) throws JETException
JETException
public static void addClasspathEntries(java.util.Collection<IClasspathEntry> classpathEntries, java.lang.String variableName, java.lang.String pluginID) throws JETException
JETException
public static void addClasspathEntries(java.util.Collection<IClasspathEntry> classpathEntries, java.lang.String pluginID) throws JETException
JETException
public static Monitor createMonitor(IProgressMonitor monitor, int ticks)
public static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IPath localLocation, IProgressMonitor progressMonitor) throws CoreException
CoreException
public static IContainer findOrCreateContainer(IPath path, boolean forceRefresh, IProjectDescription projectDescription, IProgressMonitor progressMonitor) throws CoreException
CoreException
public static java.lang.String getJavaComplianceLevel(IProject project)