org.netbeans.api.java.source.ui
public final class ElementOpen extends Object
Modifier and Type | Method and Description |
---|---|
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 . |
public static boolean open(ClasspathInfo cpInfo, ElementHandle<? extends Element> el)
Element
corresponding to the given ElementHandle
.cpInfo
- ClasspathInfo which should be used for the searchel
- declaration to openpublic static boolean open(ClasspathInfo cpInfo, Element el)
Element
.cpInfo
- ClasspathInfo which should be used for the searchel
- declaration to openpublic static boolean open(FileObject toSearch, ElementHandle<? extends Element> toOpen)
Element
.toSearch
- fileobject whose ClasspathInfo
will be usedtoOpen
- ElementHandle
of the element which should be opened.Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.