updateVisibleActions

Called when the IDE or an extension requests that the View 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.

Parameters:

updateMessage - 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.

removeViewStateListener

updateSelection

public final void updateSelection()

Subclasses should call this method to update the selection returned from getSelection() and to fire the
ViewSelectionEvent. The event is fired synchronously, so this method will block until all listeners have been notified.

scheduleUpdateSelection

public final void scheduleUpdateSelection()

A variation of updateSelection() that delays the firing of the
ViewSelectionEvent using a timer delay. This method is useful when multiple selection changes could
possibly occur in rapid sucession. When using this method, notification is not sent until a minimum interval
(around 250 ms) passes without another call to scheduleUpdateSelection() ocurring.

Despite the notification delay, this method must still be called on the Swing/AWT event dispatch thread.
The View's current selection is retrieved from the UI via getSelectionFromUI().

updateVisibleActions

public final void updateVisibleActions()

Method for updating the visible actions associated with this view. This is called by the IDE whenever the user
takes an action that requires all visible actions, such as toolbar buttons, to be updated.

getSelectionFromUI

This method retrieve's the selection in this View directly from the UI. Callers must invoke this method on the
Swing/AWT event dispatch thread, and implementations can assume that calls are on the Swing/AWT event dispatch
thread.