| org.netbeans.core.NbMainExplorer
NbMainExplorer | final public class NbMainExplorer extends CloneableTopComponent (Code) | | Main explorer - the class remains here for backward compatibility
with older serialization protocol. Its responsibilty is also
to listen to the changes of "roots" nodes and open / close
explorer's top components properly.
author: Ian Formanek, David Simonek, Jaroslav Tulach |
Inner Class :public static class MainTab extends ExplorerTab | |
Inner Class :public static class ModuleTab extends MainTab | |
Method Summary | |
public static NbMainExplorer | getExplorer() | public HelpCtx | getHelpCtx() | final public ExplorerTab | getRootPanel(Node root) Finds the right panel for given node. | public static List<Node> | getRoots() | public static void | main(String[] args) | public void | open(org.openide.windows.Workspace workspace) Overriden to open all top components of main explorer and
close this top component, as this top component exists only because of
backward serialization compatibility.
Performed with delay, when WS is in consistent state. | public void | openRoots() | public void | openRoots(org.openide.windows.Workspace workspace) | public void | readExternal(ObjectInput in) Deserialize this top component, sets as default. | final void | refreshRoots() Refreshes current state of main explorer's top components, so they
will reflect new nodes. |
DEFAULT_WIDTH | final public static int DEFAULT_WIDTH(Code) | | Default width of main explorer
|
MIN_HEIGHT | final public static int MIN_HEIGHT(Code) | | Minimal initial height of this top component
|
serialVersionUID | final static long serialVersionUID(Code) | | |
NbMainExplorer | public NbMainExplorer()(Code) | | Default constructor
|
getExplorer | public static NbMainExplorer getExplorer()(Code) | | Static method to obtains the shared instance of NbMainExplorer
the shared instance of NbMainExplorer |
getHelpCtx | public HelpCtx getHelpCtx()(Code) | | |
getRootPanel | final public ExplorerTab getRootPanel(Node root)(Code) | | Finds the right panel for given node.
the panel or null if no such panel exists |
getRoots | public static List<Node> getRoots()(Code) | | List of "root" nodes which has following structure: First goes repository, than root nodes added by modules and at lastruntime root node |
open | public void open(org.openide.windows.Workspace workspace)(Code) | | Overriden to open all top components of main explorer and
close this top component, as this top component exists only because of
backward serialization compatibility.
Performed with delay, when WS is in consistent state.
|
openRoots | public void openRoots()(Code) | | Open all main explorer's top components on current workspace
|
openRoots | public void openRoots(org.openide.windows.Workspace workspace)(Code) | | Open all main explorer's top components on given workspace
|
refreshRoots | final void refreshRoots()(Code) | | Refreshes current state of main explorer's top components, so they
will reflect new nodes. Called when content of "roots" nodes is changed.
|
|
|