public class ProjectUtil extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectUtil.CpEntry |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<org.eclipse.core.runtime.IPath> |
IPATH_COMPARATOR |
| Constructor and Description |
|---|
ProjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.core.runtime.IStatus |
createErrorStatus(java.lang.String message) |
static org.eclipse.core.runtime.IStatus |
createErrorStatus(java.lang.String message,
java.lang.Throwable t) |
static org.eclipse.core.resources.IProject[] |
getAllOtherGraniteProjects(org.eclipse.core.resources.IProject project) |
static org.eclipse.core.resources.IProject[] |
getAllProjects(org.eclipse.core.resources.IProject project) |
static java.util.List<ProjectUtil.CpEntry> |
getFullClasspath(org.eclipse.jdt.core.IJavaProject project) |
static java.util.List<ProjectUtil.CpEntry> |
getFullClasspath(org.eclipse.jdt.core.IJavaProject project,
org.eclipse.jdt.core.IClasspathEntry[] classpathEntries) |
static java.util.List<ProjectUtil.CpEntry> |
getFullResolvedClasspath(org.eclipse.jdt.core.IJavaProject project) |
static JavaClassInfo |
getJavaClassInfo(org.eclipse.jdt.core.IJavaProject project,
java.lang.Class<?> clazz) |
static JavaClassInfo |
getJavaClassInfo(org.eclipse.jdt.core.IJavaProject project,
org.eclipse.core.resources.IFile resource) |
static org.eclipse.core.runtime.IPath |
getJavaPath(org.eclipse.jdt.core.IJavaProject project,
org.eclipse.core.resources.IFile classFile,
boolean keepInner) |
static org.eclipse.core.runtime.IPath |
getOutputFolder(org.eclipse.jdt.core.IJavaProject project,
org.eclipse.jdt.core.IClasspathEntry cpe) |
static java.util.List<org.eclipse.core.runtime.IPath> |
getOutputFolders(org.eclipse.jdt.core.IJavaProject project) |
static org.eclipse.core.resources.IProject |
getProject(org.eclipse.core.resources.IProject project,
java.lang.String name) |
static java.io.File |
getProjectFile(org.eclipse.core.resources.IProject project) |
static java.net.URI |
getProjectURI(org.eclipse.core.resources.IProject project) |
static java.util.List<org.eclipse.core.runtime.IPath> |
getSourceFolders(org.eclipse.jdt.core.IJavaProject project) |
static java.io.File |
getWorkspaceFile(org.eclipse.core.resources.IProject project) |
static java.net.URI |
getWorkspaceURI(org.eclipse.core.resources.IProject project) |
static boolean |
isFlexBuilderProject(org.eclipse.core.resources.IProject project) |
static boolean |
isGraniteProject(org.eclipse.core.resources.IProject project) |
static org.eclipse.core.runtime.IPath[] |
makeRelative(org.eclipse.core.runtime.IPath[] paths) |
static java.util.List<org.eclipse.core.runtime.IPath> |
makeRelative(java.util.List<org.eclipse.core.runtime.IPath> paths) |
public static final java.util.Comparator<org.eclipse.core.runtime.IPath> IPATH_COMPARATOR
public ProjectUtil()
public static org.eclipse.core.resources.IProject[] getAllProjects(org.eclipse.core.resources.IProject project)
public static org.eclipse.core.resources.IProject[] getAllOtherGraniteProjects(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.resources.IProject getProject(org.eclipse.core.resources.IProject project, java.lang.String name)
public static boolean isGraniteProject(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static boolean isFlexBuilderProject(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List<org.eclipse.core.runtime.IPath> makeRelative(java.util.List<org.eclipse.core.runtime.IPath> paths)
public static org.eclipse.core.runtime.IPath[] makeRelative(org.eclipse.core.runtime.IPath[] paths)
public static java.io.File getWorkspaceFile(org.eclipse.core.resources.IProject project)
public static java.net.URI getWorkspaceURI(org.eclipse.core.resources.IProject project)
public static java.io.File getProjectFile(org.eclipse.core.resources.IProject project)
public static java.net.URI getProjectURI(org.eclipse.core.resources.IProject project)
public static java.util.List<ProjectUtil.CpEntry> getFullResolvedClasspath(org.eclipse.jdt.core.IJavaProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List<ProjectUtil.CpEntry> getFullClasspath(org.eclipse.jdt.core.IJavaProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List<ProjectUtil.CpEntry> getFullClasspath(org.eclipse.jdt.core.IJavaProject project, org.eclipse.jdt.core.IClasspathEntry[] classpathEntries) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List<org.eclipse.core.runtime.IPath> getSourceFolders(org.eclipse.jdt.core.IJavaProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.runtime.IPath getOutputFolder(org.eclipse.jdt.core.IJavaProject project, org.eclipse.jdt.core.IClasspathEntry cpe) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static java.util.List<org.eclipse.core.runtime.IPath> getOutputFolders(org.eclipse.jdt.core.IJavaProject project) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.runtime.IPath getJavaPath(org.eclipse.jdt.core.IJavaProject project, org.eclipse.core.resources.IFile classFile, boolean keepInner) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static JavaClassInfo getJavaClassInfo(org.eclipse.jdt.core.IJavaProject project, java.lang.Class<?> clazz)
public static JavaClassInfo getJavaClassInfo(org.eclipse.jdt.core.IJavaProject project, org.eclipse.core.resources.IFile resource) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message)
public static org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message, java.lang.Throwable t)