|
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.SystemBaseDialogAction
org.eclipse.rse.processes.ui.actions.SystemKillProcessAction
| Field Summary | |
|---|---|
protected boolean |
killedOk
|
protected Object[] |
processesDeathRow
|
protected Exception |
runException
|
protected String |
signalType
|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value |
| 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 | |
|---|---|
SystemKillProcessAction(Shell shell)
Constructor for subclass |
|
| Method Summary | |
|---|---|
protected Dialog |
createDialog(Shell shell)
If you decide to use the supplied run method as is, then you must override this method to create and return the dialog that is displayed by the default run method implementation. |
protected boolean |
doKill(IProgressMonitor monitor,
String signal,
IRemoteProcess process)
|
protected List |
getAffectedFilters(Object[] processesDeathRow,
ISubSystem subSystem)
Returns a list of all the filters that are affected by killing the objects in processesDeathRow. |
protected Object |
getDialogValue(Dialog dlg)
Required by parent. |
protected SystemMessage |
getKillingMessage()
|
protected SystemMessage |
getKillingMessage(String signal,
String processName)
Get the specific "kill" message |
protected IRunnableContext |
getRunnableContext()
Get an IRunnable context to show progress in. |
void |
killComplete()
Called after all the copy/move operations end, be it successfully or not. |
protected void |
populateSelectedObjects()
|
void |
run(IProgressMonitor monitor)
Method required by IRunnableWithProgress interface. |
protected void |
showOperationCancelledMessage(Shell shell)
Show an error message when the user cancels the operation. |
protected void |
showOperationErrorMessage(Shell shell,
SystemMessageException exc)
Show an error message when the operation fails. |
protected void |
showOperationErrorMessage(Shell shell,
Throwable exc)
Show an error message when the operation fails. |
protected void |
showOperationMessage(Exception exc,
Shell shell)
Helper method to show an error message resulting from the attempted operation. |
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasCancelled, wasNeedsProgressMonitorSet |
| 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.rse.ui.actions.ISystemAction |
|---|
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer |
| Methods inherited from interface org.eclipse.jface.action.IAction |
|---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from interface org.eclipse.jface.viewers.ISelectionChangedListener |
|---|
selectionChanged |
| Field Detail |
protected Exception runException
protected Object[] processesDeathRow
protected boolean killedOk
protected String signalType
| Constructor Detail |
public SystemKillProcessAction(Shell shell)
| Method Detail |
public boolean updateSelection(IStructuredSelection selection)
We simply ensure every selected object is an IRemoteProcess
updateSelection in class SystemBaseActionSystemBaseAction.updateSelection(IStructuredSelection)protected Object getDialogValue(Dialog dlg)
getDialogValue in class SystemBaseDialogActiondlg - The dialog object, after it has returned from open.protected Dialog createDialog(Shell shell)
If you override run with your own, then simply implement this to return null as it won't be used.
createDialog in class SystemBaseDialogActionSystemBaseDialogAction.run()protected IRunnableContext getRunnableContext()
public void run(IProgressMonitor monitor)
throws InvocationTargetException,
InterruptedException
run in interface IRunnableWithProgressInvocationTargetException
InterruptedException
protected boolean doKill(IProgressMonitor monitor,
String signal,
IRemoteProcess process)
throws Exception
monitor - Usually not neededsignal - the signal to be sent to the remote processprocess - the process to send the signal to
Exceptionpublic void killComplete()
protected List getAffectedFilters(Object[] processesDeathRow,
ISubSystem subSystem)
processesDeathRow - the objects that will be sent a kill signalsubSystem - the subsystem to search
protected void populateSelectedObjects()
protected SystemMessage getKillingMessage()
protected SystemMessage getKillingMessage(String signal,
String processName)
protected void showOperationMessage(Exception exc,
Shell shell)
protected void showOperationErrorMessage(Shell shell,
Throwable exc)
protected void showOperationErrorMessage(Shell shell,
SystemMessageException exc)
protected void showOperationCancelledMessage(Shell shell)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||