org.netbeans.modules.java.source 0.104.0 23

org.netbeans.api.java.source
Class UiUtils

java.lang.Object
  extended by org.netbeans.api.java.source.UiUtils

Deprecated. Replaced by various classes in the org.netbeans.modules.java.sourceui module.

@Deprecated
public final class UiUtils
extends Object

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
          Deprecated. Use constants from api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module
 
Method Summary
static Icon getDeclarationIcon(Element element)
          Deprecated. Use api.java.source.ui.ElementIcons of the org.netbeans.modules.java.sourceui module
static int getDistance(String s, String t)
          Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module
static Icon getElementIcon(ElementKind elementKind, Collection<Modifier> modifiers)
          Deprecated. Use api.java.source.ui.ElementIcons of the org.netbeans.modules.java.sourceui module
static String getHeader(Element element, CompilationInfo info, String formatString)
          Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module
static String getHeader(TreePath treePath, CompilationInfo info, String formatString)
          Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module
static boolean open(ClasspathInfo cpInfo, Element el)
          Deprecated. Use api.java.source.ui.ElementOpen of the org.netbeans.modules.java.sourceui module
static boolean open(FileObject toSearch, ElementHandle<? extends Element> toOpen)
          Deprecated. Use api.java.source.ui.ElementOpen of the org.netbeans.modules.java.sourceui module
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

getElementIcon

@Deprecated
public static Icon getElementIcon(ElementKind elementKind,
                                             Collection<Modifier> modifiers)
Deprecated. Use api.java.source.ui.ElementIcons of the org.netbeans.modules.java.sourceui module

Gets correct icon for given ElementKind.

Parameters:
modifiers - Can be null for empty modifiers collection

getDeclarationIcon

@Deprecated
public static Icon getDeclarationIcon(Element element)
Deprecated. Use api.java.source.ui.ElementIcons of the org.netbeans.modules.java.sourceui module


open

@Deprecated
public static boolean open(ClasspathInfo cpInfo,
                                      Element el)
Deprecated. Use api.java.source.ui.ElementOpen of the org.netbeans.modules.java.sourceui module

Opens given Element.

Parameters:
cpInfo - fileobject whose ClasspathInfo will be used
el - declaration to open
Returns:
true if and only if the declaration was correctly opened, false otherwise

open

@Deprecated
public static boolean open(FileObject toSearch,
                                      ElementHandle<? extends Element> toOpen)
Deprecated. Use api.java.source.ui.ElementOpen of the org.netbeans.modules.java.sourceui module


getHeader

@Deprecated
public static String getHeader(TreePath treePath,
                                          CompilationInfo info,
                                          String formatString)
Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module

example of formatString: "method " + PrintPart.NAME + PrintPart.PARAMETERS + " has return type " + PrintPart.TYPE


getHeader

@Deprecated
public static String getHeader(Element element,
                                          CompilationInfo info,
                                          String formatString)
Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module

example of formatString: "method " + PrintPart.NAME + PrintPart.PARAMETERS + " has return type " + PrintPart.TYPE


open

@Deprecated
public static boolean open(FileObject fo,
                                      int offset)
Deprecated. 

Opens given Element.

Parameters:
fo - fileobject whose ClasspathInfo will be used
offset - offset with fileobject
Returns:
true if and only if the declaration was correctly opened, false otherwise

getDistance

@Deprecated
public static int getDistance(String s,
                                         String t)
Deprecated. Use api.java.source.ui.ElementHeaders of the org.netbeans.modules.java.sourceui module

Computes distance between strings


org.netbeans.modules.java.source 0.104.0 23

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.