org.netbeans.modules.java.source 0.80.1 17

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


open

@Deprecated
public static boolean open(ClasspathInfo cpInfo,
                                      Element el)
Deprecated. Use org.netbeans.api.java.source.ui.ElementOpen#open(org.netbeans.api.java.source.ClasspathInfo, org.netbeans.api.java.source.ElementHandle) 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 org.netbeans.api.java.source.ui.ElementOpen#open(org.openide.filesystems.FileObject, org.netbeans.api.java.source.ElementHandle) of the org.netbeans.modules.java.sourceui module


getHeader

@Deprecated
public static String getHeader(TreePath treePath,
                                          CompilationInfo info,
                                          String formatString)
Deprecated. Use org.netbeans.api.java.source.ui.ElementHeaders#getHeader(com.sun.source.util.TreePath, org.netbeans.api.java.source.CompilationInfo, java.lang.String) 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 org.netbeans.api.java.source.ui.ElementHeaders#getHeader(javax.lang.model.element.Element, org.netbeans.api.java.source.CompilationInfo, java.lang.String) 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 org.netbeans.api.java.source.ui.ElementHeaders#getDistance(java.lang.String, java.lang.String) of the org.netbeans.modules.java.sourceui module

Computes distance between strings


org.netbeans.modules.java.source 0.80.1 17

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.