|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemBaseSubMenuAction
org.eclipse.rse.ui.actions.SystemCascadingRemoteServerBaseAction
This is the base class for actions that populate the "Remote Servers" cascading menu. The actions in this menu cascade again, into Start and Stop actions. These cascading actions are handling automatically by this base class, but when they are run, they call back into abstract methods in this base class, to actually start and stop the remote server/daemon.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseSubMenuAction |
|---|
actionLabel, createMenuEachTime, menuID, populateMenuEachTime, subMenu |
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
|---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
| Fields inherited from interface org.eclipse.jface.action.IAction |
|---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
SystemCascadingRemoteServerBaseAction(String label,
String tooltip,
Shell shell)
Deprecated. |
|
| Method Summary | |
|---|---|
protected boolean |
canDetectServerState()
Overridable method to tell the base code if you are able to determine dynamically if the server is currently running or not. |
protected abstract boolean |
isServerStarted(IHost connection)
Overridable method to compute if this remote server/daemon is currently running or not. |
void |
menuAboutToShow(IMenuManager subMenu)
Called when submenu is about to show. |
IMenuManager |
populateSubMenu(IMenuManager menu)
Populate the submenu for this action. |
protected boolean |
shouldEnable(IHost connection)
This method is an opportunity to decide whether to enable this action or not. |
abstract boolean |
startServer()
Callback from the SystemRemoteServerStartAction class
that is called when the user selects to start this remote server/daemon. |
abstract boolean |
stopServer()
Callback from the SystemRemoteServerStartAction class
that is called when the user selects to stop this remote server/daemon. |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseSubMenuAction |
|---|
cascadeAllInputs, createMnemonicsListener, createStandardGroups, getActions, getSelection, getShell, getSubMenu, getViewer, setCreateMenuEachTime, setEnabled, setInputs, setInputsFromSubMenuManager, setMenuID, setPopulateMenuEachTime, setSelection, setShell, setTest, setViewer |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
|---|
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getRemoteAdapter, getSelectionProvider, getShell, getSystemConnection, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, run, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setSelectionProvider, setSelectionSensitive, setTracing, setTracing, updateSelection |
| Methods inherited from class org.eclipse.jface.action.AbstractAction |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.action.IAction |
|---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Constructor Detail |
public SystemCascadingRemoteServerBaseAction(String label,
String tooltip,
Shell shell)
| Method Detail |
public IMenuManager populateSubMenu(IMenuManager menu)
populateSubMenu in class SystemBaseSubMenuActionmenu - The cascading menu, which is created for you. Add your actions to it.
public void menuAboutToShow(IMenuManager subMenu)
menuAboutToShow in interface IMenuListenerprotected boolean shouldEnable(IHost connection)
protected boolean canDetectServerState()
#isStarted(IHost) is
called to determine enablement state of the cascading start and stop actions. If you
cannot determine this, override this method and return false, and both start and stop
will be enabled always.
protected abstract boolean isServerStarted(IHost connection)
canDetectServerState(), and ignore this method.
public abstract boolean startServer()
SystemRemoteServerStartAction class
that is called when the user selects to start this remote server/daemon.
public abstract boolean stopServer()
SystemRemoteServerStartAction class
that is called when the user selects to stop this remote server/daemon.
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||