|
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.SystemBaseCopyAction
org.eclipse.rse.ui.filters.actions.SystemFilterMoveFilterStringAction
Move a filter string action.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
|---|
copiedOk, mgr, mode, MODE_COPY, MODE_MOVE, newNames, oldNames, oldObjects, runCount, runException, sr, targetContainer |
| 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 | |
|---|---|
SystemFilterMoveFilterStringAction(Shell parent)
Constructor |
|
| Method Summary | |
|---|---|
protected String |
checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
SHOULD NEVER BE CALLED IF preCheckForCollision WORKS PROPERLY |
boolean |
checkObjectType(Object selectedObject)
Called by SystemBaseAction when selection is set. |
protected boolean |
doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
DO THE ACTUAL COPY OR MOVE. |
protected SystemMessage |
getCopyingMessage()
Get the generic "Copying..." or "Moving..." message |
protected SystemMessage |
getCopyingMessage(String oldName)
Get the specific "Copying %1..." or "Moving %1..." message |
protected ISystemFilterString |
getFirstSelectedFilterString()
Get the first selected filter string |
protected String[] |
getOldNames()
|
protected Object[] |
getOldObjects()
|
protected SystemSimpleContentElement |
getPoolMgrTreeModel(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPoolManager poolMgr,
ISystemFilter[] filtersToExclude)
Create and return data model to populate selection tree with. |
protected String |
getPromptString()
Get the verbage prompt to show on line one of the copy dialog |
protected ISystemFilter[] |
getSelectedFilters()
Get the intersection list of filters of currently selected filter strings |
protected ISystemFilterString[] |
getSelectedFilterStrings()
Get the currently selected filter strings |
protected SystemSimpleContentElement |
getTreeInitialSelection()
|
protected SystemSimpleContentElement |
getTreeModel()
|
boolean |
isValidTargetParent(SystemSimpleContentElement selectedElement)
This method is a callback from the select-target-parent dialog, allowing us to decide whether the current selected object is a valid parent object. |
protected void |
populateFilterContentElementVector(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPool pool,
Vector elements,
SystemSimpleContentElement parentElement,
ISystemFilter[] filtersToExclude,
ISystemFilter filterToSelect)
Populate filter pool subtree with filters |
protected void |
populateFilterPoolContentElementVector(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPoolManager mgr,
Vector elements,
SystemSimpleContentElement parentElement,
ISystemFilter[] filtersToExclude,
ISystemFilterPool filterPoolToSelect,
ISystemFilter filterToSelect)
Populate filter pool manager subtree with filter pools |
protected boolean |
preCheckForCollision(Shell shell,
Object targetContainer,
Object oldObject,
String oldName)
Overridable entry point when you want to prevent any copies/moves if any of the selected objects have a name collision. |
protected void |
reset()
Reset. |
void |
setHelpContextId(String id)
Set the help context Id (infoPop) for this action. |
void |
setPromptString(String promptString)
Set the prompt string that shows up at the top of the copy-destination dialog. |
protected boolean |
supportsDuplicateFilterStrings(ISystemFilter filter)
Overridable method if you support duplicate filter strings in the same filter. |
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseCopyAction |
|---|
copyComplete, createDialog, getCompletionMessage, getDialogValue, getRunnableContext, getTargetContainer, preCheckForCollision, run, showOperationCancelledMessage, showOperationErrorMessage, showOperationErrorMessage, showOperationMessage |
| 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 SystemFilterMoveFilterStringAction(Shell parent)
| Method Detail |
protected void reset()
reset in class SystemBaseCopyActionpublic void setHelpContextId(String id)
Same as #setHelp(String)
#getHelpContextId()protected boolean supportsDuplicateFilterStrings(ISystemFilter filter)
public boolean updateSelection(IStructuredSelection selection)
updateSelection in class SystemBaseActionSystemBaseAction#updateSelection(IStructuredSelection)public boolean checkObjectType(Object selectedObject)
checkObjectType in class SystemBaseActionpublic boolean isValidTargetParent(SystemSimpleContentElement selectedElement)
The default is to return true if the selected element has no children. This is sufficient for most cases. However, in some cases it is not, such as for filter strings where we want to only enable OK if a filter is selected. It is possible that filter pools have no filters, so the default algorithm is not sufficient. In these cases the child class can override this method.
isValidTargetParent in interface ISystemCopyTargetSelectionCallbackisValidTargetParent in class SystemBaseCopyAction
protected boolean preCheckForCollision(Shell shell,
Object targetContainer,
Object oldObject,
String oldName)
If you decide to override this, it is your responsibility to issue the error message to the user and return false here.
preCheckForCollision in class SystemBaseCopyAction
protected String checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
checkForCollision in class SystemBaseCopyActionSystemBaseCopyAction.checkForCollision(Shell, IProgressMonitor, Object, Object, String)
protected boolean doCopy(IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String newName)
throws Exception
SystemBaseCopyAction
doCopy in class SystemBaseCopyActionExceptionSystemBaseCopyAction.doCopy(IProgressMonitor, Object, Object, String)protected SystemSimpleContentElement getTreeModel()
getTreeModel in class SystemBaseCopyActionSystemBaseCopyAction.getTreeModel()protected SystemSimpleContentElement getTreeInitialSelection()
getTreeInitialSelection in class SystemBaseCopyActionSystemBaseCopyAction.getTreeInitialSelection()public void setPromptString(String promptString)
protected String getPromptString()
SystemBaseCopyAction
getPromptString in class SystemBaseCopyActionSystemBaseCopyAction.getPromptString()protected SystemMessage getCopyingMessage()
SystemBaseCopyAction
getCopyingMessage in class SystemBaseCopyActionSystemBaseCopyAction.getCopyingMessage()protected SystemMessage getCopyingMessage(String oldName)
SystemBaseCopyAction
getCopyingMessage in class SystemBaseCopyActionSystemBaseCopyAction.getCopyingMessage( String)protected Object[] getOldObjects()
getOldObjects in class SystemBaseCopyActionSystemBaseCopyAction.getOldObjects()protected String[] getOldNames()
getOldNames in class SystemBaseCopyActionSystemBaseCopyAction.getOldNames()protected ISystemFilterString[] getSelectedFilterStrings()
protected ISystemFilter[] getSelectedFilters()
protected ISystemFilterString getFirstSelectedFilterString()
protected SystemSimpleContentElement getPoolMgrTreeModel(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPoolManager poolMgr,
ISystemFilter[] filtersToExclude)
poolMgrProvider - The provider who will give us the list of filter pool managers to populate the list withpoolMgr - The SystemFilterPoolManager whose tree model element is to be pre-selectedfiltersToExclude - All the currently selected filters, which are excluded from the target list
protected void populateFilterPoolContentElementVector(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPoolManager mgr,
Vector elements,
SystemSimpleContentElement parentElement,
ISystemFilter[] filtersToExclude,
ISystemFilterPool filterPoolToSelect,
ISystemFilter filterToSelect)
protected void populateFilterContentElementVector(ISystemFilterPoolManagerProvider poolMgrProvider,
ISystemFilterPool pool,
Vector elements,
SystemSimpleContentElement parentElement,
ISystemFilter[] filtersToExclude,
ISystemFilter filterToSelect)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||