|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The manager for control of navigator node overlays.
Addins requiring the use of overlay icons in a navigator window must initialize the navigator manager with the overlay controller to use before the view is created. If there is a requirement for overlays in the system navigator instance, this must happen during addin initialization ahead of referencing the system navigator. The navigator manager provides a default overlay manager implementation, which can be established in the following way -
NavigatorManager manager = Ide.getFeatures().getNavigatorManager();
manager.setOverlayManager( manager.getDefaultOverlayManager() );
The node overlay manager also holds a list of clients through which the work of overlay determination is performed prior to rendering. Many clients may register, but since multiple simultaneous overlays are not supported there must be a client consensus for controlled elements and a separation of responsibility.
NavigatorManager
,
NodeOverlayClient
Method Summary | |
void |
addClient(NodeOverlayClient client)
Adds a controller client for node overlay retrieval. |
void |
addTreeExplorer(TreeExplorer tree)
Adds a tree explorer for node overlay control. |
void |
removeClient(NodeOverlayClient client)
Removes the given controller client for node overlays. |
void |
removeTreeExplorer(TreeExplorer tree)
Removes a tree explorer from node overlay control. |
void |
repaintOverlays()
Refresh, through repainting, all visible node overlays. |
void |
validateOverlay(Element e)
Validates the overlay for the given element. |
void |
validateOverlays()
Validates all controlled overlays. |
Methods inherited from interface oracle.ide.explorer.IconOverlayManager |
getOverlayIcon |
Method Detail |
public void addTreeExplorer(TreeExplorer tree)
tree
- the tree explorer to add.public void removeTreeExplorer(TreeExplorer tree)
tree
- the tree explorer to remove.public void addClient(NodeOverlayClient client)
client
- the overlay client value to add.public void removeClient(NodeOverlayClient client)
#updateOverlays
with the client before dropping
any local references.client
- the overlay client value to remove.public void validateOverlays()
public void validateOverlay(Element e)
e
- the element whose overlay must be validated.public void repaintOverlays()
validateOverlay
.
|
Extension SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |