org.netbeans.modules.java.sourceui/1 1.23.1 1

org.netbeans.api.java.source.ui
Class ElementOpen

java.lang.Object
  extended by org.netbeans.api.java.source.ui.ElementOpen

public final class ElementOpen
extends Object

Utility class for opening elements in editor.


Method Summary
static boolean open(ClasspathInfo cpInfo, Element el)
          Opens given Element.
static boolean open(ClasspathInfo cpInfo, ElementHandle<? extends Element> el)
          Opens Element corresponding to the given ElementHandle.
static boolean open(FileObject toSearch, ElementHandle<? extends Element> toOpen)
          Opens given Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public static boolean open(ClasspathInfo cpInfo,
                           ElementHandle<? extends Element> el)
Opens Element corresponding to the given ElementHandle.

Parameters:
cpInfo - ClasspathInfo which should be used for the search
el - declaration to open
Returns:
true if and only if the declaration was correctly opened, false otherwise
Since:
1.5

open

public static boolean open(ClasspathInfo cpInfo,
                           Element el)
Opens given Element.

Parameters:
cpInfo - ClasspathInfo which should be used for the search
el - declaration to open
Returns:
true if and only if the declaration was correctly opened, false otherwise

open

public static boolean open(FileObject toSearch,
                           ElementHandle<? extends Element> toOpen)
Opens given Element.

Parameters:
toSearch - fileobject whose ClasspathInfo will be used
toOpen - ElementHandle of the element which should be opened.
Returns:
true if and only if the declaration was correctly opened, false otherwise

org.netbeans.modules.java.sourceui/1 1.23.1 1

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