public class JavaExtensions
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
CLASS_NAME_PATTERN |
static java.lang.String |
DEFAULT_OUTPUT_FOLDER_NAME |
static java.lang.String |
VERSION_1_8 |
Constructor and Description |
---|
JavaExtensions() |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.Bundle |
getBundle(java.net.URL pluginClasspathRootLocationURL) |
static java.lang.String |
getDevModePluginClasspathRootLocationPostfix()
Returns the common postfix of the classpath root locations of "dev mode" plug-ins.
|
static java.io.File |
getFile(org.eclipse.jdt.core.IClasspathEntry entry) |
static org.eclipse.jdt.core.IJavaProject |
getJavaProject(java.lang.String projectName) |
static org.eclipse.core.runtime.IPath |
getLocation(org.eclipse.core.runtime.IPath workspacePath)
Returns the absolute path in the local file system corresponding to given workspace-relative path.
|
static org.eclipse.core.runtime.IPath |
getPluginClasspathRootLocation(java.lang.String pluginId) |
static org.eclipse.core.runtime.IPath |
getPluginInstallLocation()
Returns the plug-in installation location.
|
static boolean |
isDevModePluginClasspathLocationOf(java.lang.String pluginId,
org.eclipse.core.runtime.IPath classpathLocation) |
static boolean |
isInstalledPluginClasspathRootLocationOf(java.lang.String pluginId,
org.eclipse.core.runtime.IPath classpathLocation) |
static void |
validateCompilerCompliance(java.lang.String compliance) |
public static final java.lang.String VERSION_1_8
public static final java.lang.String DEFAULT_OUTPUT_FOLDER_NAME
public static final java.util.regex.Pattern CLASS_NAME_PATTERN
public static java.io.File getFile(org.eclipse.jdt.core.IClasspathEntry entry)
public static org.eclipse.jdt.core.IJavaProject getJavaProject(java.lang.String projectName)
public static org.eclipse.core.runtime.IPath getLocation(org.eclipse.core.runtime.IPath workspacePath)
workspacePath
- the workspace-relative path to some resource in the workspaceworkspacePath
, or null if no path can be determinedpublic static org.eclipse.core.runtime.IPath getPluginInstallLocation()
public static java.lang.String getDevModePluginClasspathRootLocationPostfix()
public static boolean isInstalledPluginClasspathRootLocationOf(java.lang.String pluginId, org.eclipse.core.runtime.IPath classpathLocation)
public static boolean isDevModePluginClasspathLocationOf(java.lang.String pluginId, org.eclipse.core.runtime.IPath classpathLocation)
public static org.osgi.framework.Bundle getBundle(java.net.URL pluginClasspathRootLocationURL)
public static org.eclipse.core.runtime.IPath getPluginClasspathRootLocation(java.lang.String pluginId)
public static void validateCompilerCompliance(java.lang.String compliance)