@ExtensionPoint public interface HostContextAction extends ContextAction
HostContextActions provide actions that are associated with hosts and
can be invoked by users. The exact position and appearance of these
HostContextActions varies based on the implementation.
Plugins can register implementations of this interface as OSGi services to
provide additional HostContextActions.
The following information is specific to the current release and may change in a future release.
The swing client uses instances of this interface to provide menu items for
the Host/VM tree. The menu is shown when a user right clicks a host in the
Host/VM tree. A menu item for every HostContextAction is added, if
the Filter matches, to this menu. Selecting a menu item invokes the
appropriate HostContextAction.
VMContextAction| Modifier and Type | Method and Description |
|---|---|
void |
execute(HostRef reference)
Invoked when the user selects this
HostContextAction. |
String |
getDescription()
A user-visible description for this
HostContextAction. |
Filter<HostRef> |
getFilter()
The
Filter returned by this method is used to select what VMs
this HostContextAction is applicable to. |
String |
getName()
A user-visible name for this
HostContextAction. |
String getName()
HostContextAction. This should be
localized.getName in interface ContextActionString getDescription()
HostContextAction. This
should be localized.getDescription in interface ContextActionvoid execute(HostRef reference)
HostContextAction.reference - the host on which this HostContextAction was
invoked on.Copyright © 2013. All Rights Reserved.