|
|||||||||||
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(IJavaElement jElem)
Get the line number for the class declaration in the given IJavaElement, which should be an ICompilationUnit. |
static void |
openInEditor(IResource res,
int lineNumber)
Open the resource in the java editor and highlight the given line if greater then zero. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JDTUtils()
Method Detail |
public static void openInEditor(IResource res, int lineNumber)
res
- the resourcelineNumber
- the number of the line to be selectedpublic static int getClassDeclLineNum(IJavaElement jElem)
jElem
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |