|
org.netbeans.modules.java.source 0.13.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.java.source.UiUtils
public final class UiUtils
This class contains various methods bound to visualization of Java model elements. It was formerly included under SourceUtils XXX - needs cleanup
Nested Class Summary | |
---|---|
static class |
UiUtils.PrintPart
|
Method Summary | |
---|---|
static Icon |
getDeclarationIcon(Element element)
Deprecated. |
static int |
getDistance(String s,
String t)
Computes dostance between strings |
static Icon |
getElementIcon(ElementKind elementKind,
Collection<Modifier> modifiers)
Gets correct icon for given ElementKind. |
static String |
getHeader(Element element,
CompilationInfo info,
String formatString)
example of formatString: "method " + PrintPart.NAME + PrintPart.PARAMETERS + " has return type " + PrintPart.TYPE |
static String |
getHeader(TreePath treePath,
CompilationInfo info,
String formatString)
example of formatString: "method " + PrintPart.NAME + PrintPart.PARAMETERS + " has return type " + PrintPart.TYPE |
static boolean |
open(ClasspathInfo cpInfo,
Element el)
Opens given Element . |
static boolean |
open(FileObject toSearch,
ElementHandle<? extends Element> toOpen)
|
static boolean |
open(FileObject fo,
int offset)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Icon getElementIcon(ElementKind elementKind, Collection<Modifier> modifiers)
modifiers
- Can be null for empty modifiers collection@Deprecated public static Icon getDeclarationIcon(Element element)
public static boolean open(ClasspathInfo cpInfo, Element el)
Element
.
cpInfo
- fileobject whose ClasspathInfo
will be usedel
- declaration to open
public static boolean open(FileObject toSearch, ElementHandle<? extends Element> toOpen)
public static String getHeader(TreePath treePath, CompilationInfo info, String formatString)
public static String getHeader(Element element, CompilationInfo info, String formatString)
@Deprecated public static boolean open(FileObject fo, int offset)
Element
.
fo
- fileobject whose ClasspathInfo
will be usedoffset
- offset with fileobject
public static int getDistance(String s, String t)
|
org.netbeans.modules.java.source 0.13.0 1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |