|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.contribution.visualiser.utils.JDTUtils
Utility class for common JDT functions required by providers
| Constructor Summary | |
JDTUtils()
|
|
| Method Summary | |
static int |
getClassDeclLineNum(org.eclipse.jdt.core.IJavaElement jElem)
Get the line number for the class declaration in the given IJavaElement, which should be an ICompilationUnit. |
static int |
getLineNumber(org.eclipse.jdt.core.ICompilationUnit cUnit,
int offSet)
|
static void |
openInEditor(org.eclipse.core.resources.IMarker marker)
Open the editor at the location of the given marker. |
static void |
openInEditor(org.eclipse.core.resources.IResource res,
int lineNumber)
Open the resource in the editor and highlight the given line if greater then zero. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDTUtils()
| Method Detail |
public static void openInEditor(org.eclipse.core.resources.IResource res,
int lineNumber)
res - the resourcelineNumber - the number of the line to be selectedpublic static void openInEditor(org.eclipse.core.resources.IMarker marker)
marker - public static int getClassDeclLineNum(org.eclipse.jdt.core.IJavaElement jElem)
jElem -
public static int getLineNumber(org.eclipse.jdt.core.ICompilationUnit cUnit,
int offSet)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||