|
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.ui.actions.SystemCommonDeleteAction
The action that displays the Delete confirmation dialog.There are two ways to use this action:
If the input objects do not adapt to ISystemRemoteElementAdapter or
ISystemViewElementAdapter, then you
should call #setNameValidator(org.eclipse.rse.core.ui.validators.ISystemValidator) to
specify a validator that is called to verify the typed new name is valid. Further, to show the type value
of the input objects, they should implement ISystemTypedObject.
SystemDeleteDialog| Nested Class Summary | |
|---|---|
class |
SystemCommonDeleteAction.DeleteRunnable
|
| Field Summary |
|---|
| 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 | |
|---|---|
SystemCommonDeleteAction(Shell parent)
Constructor for SystemDeleteAction when not using a delete target |
|
SystemCommonDeleteAction(Shell parent,
ISystemDeleteTarget deleteTarget)
Constructor for SystemDeleteAction when using a delete target |
|
| 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 Object |
getDialogValue(Dialog dlg)
Required by parent. |
protected ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
protected IRunnableContext |
getRunnableContext(Shell shell)
|
void |
setPromptLabel(String text)
Specify the text to show for the label prompt. |
boolean |
updateSelection(IStructuredSelection selection)
Called by SystemBaseAction when selection is set. |
| 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.rse.ui.actions.SystemBaseAction |
|---|
allowOnMultipleSelection, checkObjectType, getAdapter, getContextMenuGroup, getCurrentTreeView, getFirstSelection, getHelpContextId, getNextSelection, getSelection, getSelectionProvider, getShell, getShell, getSystemConnection, getViewer, isDummy, isEnabled, isSelectionSensitive, issueTraceMessage, selectionChanged, setAvailableOffline, setBusyCursor, setContextMenuGroup, setDisplayCursor, setDisplayCursor, setHelp, setHost, setInputs, setSelection, setSelectionProvider, setSelectionSensitive, setShell, setTracing, setTracing, setViewer |
| 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 |
| Constructor Detail |
public SystemCommonDeleteAction(Shell parent,
ISystemDeleteTarget deleteTarget)
parent - The Shell of the parent UI for this dialogdeleteTarget - The UI part that has selectable and deletable parts.public SystemCommonDeleteAction(Shell parent)
parent - The Shell of the parent UI for this dialog| Method Detail |
public void setPromptLabel(String text)
public boolean updateSelection(IStructuredSelection selection)
updateSelection in class SystemBaseActionprotected 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 Object getDialogValue(Dialog dlg)
getDialogValue in class SystemBaseDialogActiondlg - The dialog object, after it has returned from open.protected IRunnableContext getRunnableContext(Shell shell)
protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
getRemoteAdapter in class SystemBaseAction
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||