|
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.SystemCommonRenameAction
The action that displays the Rename 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.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.
SystemRenameDialog,
SystemRenameSingleDialog| 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 | |
|---|---|
SystemCommonRenameAction(Shell parent)
Constructor when not using a rename target |
|
SystemCommonRenameAction(Shell parent,
ISystemRenameTarget target)
Constructor when using a rename target |
|
| Method Summary | |
|---|---|
protected Dialog |
createDialog(Shell parent)
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. |
boolean |
getCopyCollisionMode()
Query if this dialog is the result of a copy/move name collision. |
protected Object |
getDialogValue(Dialog dlg)
Required by parent. |
String[] |
getNewNames()
Return the new names entered by the user. |
void |
setCopyCollisionMode(boolean copyCollisionMode)
Indicate this dialog is the result of a copy/move name collision. |
void |
setDialogMultiSelectionHelp(String helpID)
Set the help to use in the dialog when there are multiple selections |
void |
setDialogSingleSelectionHelp(String helpID)
Set the help to use in the dialog when there is a single selection |
void |
setMultiSelectVerbage(String verbage)
Set the verbage to show at the top of the table, used when multi things are selected. |
void |
setNameValidator(ISystemValidator nameValidator)
Set the validator for the new name,as supplied by the adaptor for name checking. |
void |
setSingleSelectPromptLabel(String label,
String tooltip)
Set the label and tooltip of the prompt, used when only one thing is selected. |
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.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 SystemCommonRenameAction(Shell parent,
ISystemRenameTarget target)
parent - The Shell of the parent UI for this dialogtarget - The UI part that has selectable and renamable parts.public SystemCommonRenameAction(Shell parent)
parent - The Shell of the parent UI for this dialog| Method Detail |
public void setDialogSingleSelectionHelp(String helpID)
public void setDialogMultiSelectionHelp(String helpID)
public void setSingleSelectPromptLabel(String label,
String tooltip)
public void setMultiSelectVerbage(String verbage)
public void setNameValidator(ISystemValidator nameValidator)
public void setCopyCollisionMode(boolean copyCollisionMode)
public boolean getCopyCollisionMode()
public boolean updateSelection(IStructuredSelection selection)
updateSelection in class SystemBaseActionprotected Dialog createDialog(Shell parent)
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.getNewNames()public String[] getNewNames()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||