public class ViewDecorator extends View
EMPTY_SELECTION, PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP| Modifier | Constructor and Description | 
|---|---|
protected  | 
ViewDecorator(View decorated)
Creates a ViewDecorator. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
activate()  | 
void | 
close()  | 
void | 
deactivate()
Cleans up after this view stops being the active view. 
 | 
Context | 
getContext(java.util.EventObject event)  | 
ContextMenu | 
getContextMenu()  | 
Controller | 
getController()
Get the  
Controller associated with this view. | 
protected View | 
getDecorated()  | 
java.awt.Component | 
getGUI()  | 
HelpInfo | 
getHelpInfo()  | 
protected Element[] | 
getSelectionFromUI()
This method retrieve's the selection in this View directly from the UI. 
 | 
Toolbar | 
getToolbar()
Get the toolbar associated with this view. 
 | 
View | 
getViewWithoutDecoration()
Returns the View without any decorators. 
 | 
protected boolean | 
isDecorated()  | 
boolean | 
isVisible()  | 
void | 
loadLayout(PropertyAccess p)  | 
protected java.lang.String | 
newId()
Generates a unique view ID. 
 | 
void | 
saveLayout(PropertyAccess p)  | 
protected void | 
setDecorated(View decorated)  | 
protected void | 
setOwner(View owner)  | 
void | 
setToolbarVisible(boolean visible)  | 
void | 
show()
Shows the view if hidden. 
 | 
void | 
updateTitle(java.lang.Object obj)
Called when the view needs to update its title based on the specified object. 
 | 
void | 
updateVisibleActions(UpdateMessage updateMessage)
Called when the IDE or an extension requests that the  
View updates the enabled state of any actions 
 that are visible on screen. | 
addViewListener, addViewSelectionListener, addViewStateListener, fireViewCollapsed, fireViewExpanded, fireViewSelectionChanged, getContext, getId, getSelection, getTabName, loadManifestToolbar, loadManifestToolbar, owner, removeViewListener, removeViewSelectionListener, removeViewStateListener, scheduleUpdateSelection, setId, toString, updateSelection, updateSelectionImpl, updateToolbarActions, updateVisibleActionsprotected ViewDecorator(View decorated)
decorated - the View to decorateprotected final View getDecorated()
protected void setDecorated(View decorated)
public View getViewWithoutDecoration()
ViewgetViewWithoutDecoration in class Viewpublic void deactivate()
Viewdeactivate in class Viewpublic Context getContext(java.util.EventObject event)
getContext in class Viewevent - event associated with the context.public ContextMenu getContextMenu()
getContextMenu in class ViewContextMenu, if any.public Controller getController()
ControllerProviderController associated with this view.getController in interface ControllerProvidergetController in class Viewpublic java.awt.Component getGUI()
public HelpInfo getHelpInfo()
getHelpInfo in interface HelpablegetHelpInfo in class Viewprotected Element[] getSelectionFromUI()
ViewgetSelectionFromUI in class Viewpublic Toolbar getToolbar()
ViewgetToolbar in class Viewpublic void loadLayout(PropertyAccess p)
loadLayout in class Viewprotected java.lang.String newId()
Viewpublic void saveLayout(PropertyAccess p)
saveLayout in class Viewpublic void setToolbarVisible(boolean visible)
setToolbarVisible in class Viewpublic void show()
Viewpublic void updateTitle(java.lang.Object obj)
ViewupdateTitle in class Viewobj - the specified object.public void updateVisibleActions(UpdateMessage updateMessage)
ViewView updates the enabled state of any actions 
 that are visible on screen. Typically this will involve updating actions that are in visible toolbars.  If a 
 View contains or manages other nested instances of View, the outer call to 
 updateVisibleActions should propagate inward to call the updateVisibleActions of all 
 visible, nested Views.updateVisibleActions in class ViewupdateMessage - information on what is triggering the update.  Implementations may make use of this 
 information to decide whether or not an update is necessary, since updating the enabled state of a toolbar button 
 may be a lengthy operation.  For example, buttons that control a remote debugger would involve network I/O and 
 evaluating their updated state could be avoided if the updateMessage indicates that the source of the update is not 
 relevant to the debugger.protected boolean isDecorated()