| java.lang.Object org.netbeans.modules.sql.project.ui.PackageView
PackageView | public class PackageView (Code) | | Factory for package views.
See Also: org.netbeans.spi.project.ui.LogicalViewProvider author: Jesse Glick |
Inner Class :final static class PackageItem implements Comparable | |
createListView | public static ComboBoxModel createListView(SourceGroup group)(Code) | | Create a list or combo box model suitable for
javax.swing.JList from a source group
showing all Java packages in the source group.
To display it you will also need
PackageView.listRenderer .
No particular guarantees are made as to the nature of the model objects themselves,
except that
Object.toString will give the fully-qualified package name
(or "" for the default package), regardless of what the renderer
actually displays.
Parameters: group - a Java-like source group a model of its packages since: org.netbeans.modules.java.project/1 1.3 |
createPackageView | public static Node createPackageView(SourceGroup group)(Code) | | Create a node which will contain package-oriented view of a source group.
The precise structure of this node is not specified by the API
and is subject to arbitrary change (perhaps at user option).
Callers should not make assumptions about the nature of subnodes, the
code or display names of certain nodes, and so on. You may use cookies/lookup
to find if particular subnodes correspond to folders or files.
Parameters: group - a source group which should be represented node which will display packages in given group |
findNonExcludedPackages | static void findNonExcludedPackages(PackageViewChildren children, FileObject fo)(Code) | | Fills given collection with flatened packages under given folder
Parameters: target - The collection to be filled Parameters: fo - The folder to be scanned Parameters: group - if null the collection will be filled with file objects ifnon null PackageItems will be created. |
findNonExcludedPackages | static void findNonExcludedPackages(Collection target, FileObject fo, SourceGroup group)(Code) | | |
findPath | public static Node findPath(Node rootNode, Object object)(Code) | | Finds the node representing given object, if any.
The current implementation works only for
org.openide.filesystems.FileObject s
and
org.openide.loaders.DataObject s.
Parameters: rootNode - a node some descendant of which should contain the object Parameters: object - object to find a node representing the given object, or null if no such node was found |
listRenderer | public static ListCellRenderer listRenderer()(Code) | | Create a renderer suited to rendering models created using
PackageView.createListView .
The exact nature of the display is not specified.
Instances of String can also be rendered.
a suitable package renderer since: org.netbeans.modules.java.project/1 1.3 |
|
|