|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SystemBaseCopyAction com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseCopyAction com.ibm.etools.iseries.rse.ui.actions.QSYSCopyMemberAction
public class QSYSCopyMemberAction
Copy selected members action.
Field Summary | |
---|---|
protected Vector |
copiedObjs
|
static String |
copyright
|
protected IQSYSMember |
firstSelection
|
protected ISelection |
previousSelection
|
protected IQSYSMember[] |
selectedMembers
|
protected IHost |
sourceConnection
|
protected String |
sourceLibraryFile
|
protected IQSYSObject |
targetFile
|
Constructor Summary | |
---|---|
QSYSCopyMemberAction(Shell shell)
Constructor |
Method Summary | |
---|---|
protected String |
checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
|
void |
copyComplete()
Called after all the copy/move operations end, be it successfully or not. |
protected Dialog |
createDialog(Shell shell)
Override of parent. |
protected boolean |
doCopy(Object targetContainer,
Object oldObject,
String newName,
IProgressMonitor monitor)
|
protected IQSYSMember |
getFirstSelectedMember()
Get the first selected ISeriesMember |
protected String[] |
getOldNames()
|
protected Object[] |
getOldObjects()
|
protected IQSYSMember[] |
getSelectedMembers()
Get the currently selected ISeriesMember objects |
protected Object |
getTargetContainer(Dialog dlg)
From the target-container dialog return the user-selected ISeriesObject target, or null if cancelled. |
protected SystemSimpleContentElement |
getTreeInitialSelection()
Required parent class abstract method. |
protected SystemSimpleContentElement |
getTreeModel()
Required parent class abstract method. |
SystemMessage |
isValid(IHost selectedConnection,
Object[] selectedObjects,
ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
The user has selected a remote object. |
boolean |
updateSelection(IStructuredSelection selection)
We override from parent to do unique checking... |
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseCopyAction |
---|
getIBMiConnection, getObjectSubSystem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected IQSYSMember[] selectedMembers
protected IQSYSMember firstSelection
protected IQSYSObject targetFile
protected ISelection previousSelection
protected String sourceLibraryFile
protected IHost sourceConnection
protected Vector copiedObjs
Constructor Detail |
---|
public QSYSCopyMemberAction(Shell shell)
Method Detail |
---|
public boolean updateSelection(IStructuredSelection selection)
We simply ensure every selected object is an iseries member
updateSelection
in class QSYSSystemBaseCopyAction
SystemBaseAction#updateSelection(IStructuredSelection)
protected String checkForCollision(Shell shell, IProgressMonitor monitor, Object targetContainer, Object oldObject, String oldName)
shell
- Window to host dialogmonitor
- Usually not neededtargetContainer
- will be the ISeriesObject file selected to copy intooldObject
- will be the ISeriesMember object currently being copiedoldName
- will be the name of the ISeriesMember object currently being copiedSystemBaseCopyAction#checkForCollision(Shell, IProgressMonitor, Object, Object, String)
protected boolean doCopy(Object targetContainer, Object oldObject, String newName, IProgressMonitor monitor) throws Exception
targetContainer
- will be the ISeriesObject file selected to copy intooldObject
- will be the ISeriesMember object currently being copiednewName
- will be the new name to give the oldObject on copymonitor
- Usually not needed
Exception
SystemBaseCopyAction#doCopy(IProgressMonitor, Object, String, String)
protected SystemSimpleContentElement getTreeModel()
protected SystemSimpleContentElement getTreeInitialSelection()
protected Object[] getOldObjects()
Returns an array of ISeriesMember objects
protected String[] getOldNames()
SystemBaseCopyAction#getOldNames()
protected Dialog createDialog(Shell shell)
protected Object getTargetContainer(Dialog dlg)
public void copyComplete()
protected IQSYSMember[] getSelectedMembers()
protected IQSYSMember getFirstSelectedMember()
public SystemMessage isValid(IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
This is overridden in ISeriesMoveMemberAction
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |