public abstract class NavigatorWindow extends DockableWindow
NavigatorWindow
interface provides the API for managing
the contents of a navigator window tree.Observer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAVIGATOR_WINDOW_ID
The navigator window view ID.
|
CLOSED, HIDDEN, SHOWN
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
DEFAULT_VISIBILITY_MINIMIZED, DEFAULT_VISIBILITY_RAISED, DEFAULT_VISIBILITY_VISIBLE, TYPE_DISCARDABLE, TYPE_FORGETTABLE, TYPE_GLOBAL_VISIBLE, TYPE_NO_BUTTONS, TYPE_NORMAL, TYPE_NOT_TABBED, TYPE_RECYCLABLE, TYPE_TRUNCATE_TITLE
Constructor and Description |
---|
NavigatorWindow() |
Modifier and Type | Method and Description |
---|---|
abstract void |
collapse(TNode tnode,
boolean all)
Collapse the specified
TNode . |
abstract void |
expand(TNode tnode,
boolean all)
Expand the specified
TNode . |
abstract TNode |
findTNode(Element element,
TNode root)
Find the specified
element . |
DrawerWindow |
getDrawerWindow()
Returns instance of the DrawerWindow or null.
|
java.util.List<DockableWindow> |
getHostedDockables() |
abstract NavigatorManager |
getManager()
Returns the
NavigatorManager that manages this navigator. |
abstract TreeExplorer |
getTreeExplorer()
Returns the
TreeExplorer implementing the tree behavior
for this navigator. |
boolean |
isUsingDrawer()
Overridden by subclass to indicate whether the drawer functionality
inherited from DrawerDockableWindow should be enabled.
|
boolean |
openContext(Context context)
Asks the NavigatorWindow to open the specified Context.
|
boolean |
openContext(Context context,
boolean activateDockable)
Asks the NavigatorWindow to open the specified Context.
|
static void |
openContextInLastActiveNavigator(Context context)
Opens the specified Context in the last active navigator window.
|
abstract void |
refresh(TNode tnode)
Closes and re-opens the specified
tnode . |
abstract void |
setRootVisible(boolean visible)
Hides the navigator root node if the
visible parameter
is false . |
addTitleChangeListener, close, dockableHidden, dockableShown, fireTitleChangeListener, getCachedDockable, getDefaultVisibility, getHeaderComponents, getHostedComponent, getMenuTitle, getSite, getTabDropListener, getTabIcon, getType, getUniqueName, isDrawer, isVisible, removeTitleChangeListener, setDockableVisible, setSite, setType, show, stateChange, updateTitle
afterAutoExpanding, afterRestoringFromAutoExpansion, beforeAutoExpanding, getAutoExpansionPreferredSize, getAutoExpansionSize, isAutoExpandable, isAutoExpandableEnabled, setAutoExpandable, setAutoExpandableEnabled
activate, deactivate, getContext, getContextMenu, getController, getDecorated, getGUI, getHelpInfo, getSelectionFromUI, getToolbar, getViewWithoutDecoration, isDecorated, loadLayout, newId, saveLayout, setDecorated, setOwner, setToolbarVisible, updateVisibleActions
addViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, getTabName, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, scheduleUpdateSelection, setId, toString, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTabName, getTitleName, loadLayout, saveLayout
public static final java.lang.String NAVIGATOR_WINDOW_ID
public abstract void setRootVisible(boolean visible)
visible
parameter
is false
.public abstract void collapse(TNode tnode, boolean all)
TNode
. If the boolean
flag all
is set to true
, all descendents are
also collapsed.public abstract void expand(TNode tnode, boolean all)
TNode
. If the boolean
flag all
is set to true
, all descendents are
also expanded.public abstract TNode findTNode(Element element, TNode root)
element
. Start looking recursively depth
first from the given root
node. This method will open
nodes in order to carry out the search. For other types of searches
get the TreeExplorer
using the getTreeExplorer()
method.
The TreeExplorer
class provides other search methods.public abstract void refresh(TNode tnode)
tnode
.public abstract TreeExplorer getTreeExplorer()
TreeExplorer
implementing the tree behavior
for this navigator.public abstract NavigatorManager getManager()
NavigatorManager
that manages this navigator.public boolean isUsingDrawer()
public java.util.List<DockableWindow> getHostedDockables()
public boolean openContext(Context context)
context
- the Context to opentrue
if the Context was successfully opened or
false
otherwise.public boolean openContext(Context context, boolean activateDockable)
context
- the Context to openwhether
- the dockable should be activated upon findingtrue
if the Context was successfully opened or
false
otherwise.public static void openContextInLastActiveNavigator(Context context)
context
- the context to openpublic DrawerWindow getDrawerWindow()