|
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.QSYSAbstractMemberAction
public abstract class QSYSAbstractMemberAction
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 | |
---|---|
QSYSAbstractMemberAction(Shell parent,
int mode)
Constructor for QSYSAbstractMemberAction when using default action ID |
|
QSYSAbstractMemberAction(Shell parent,
String label,
int mode)
Constructor for QSYSSystemBaseCopyAction |
Method Summary | |
---|---|
protected String |
checkForCollision(Shell shell,
IProgressMonitor monitor,
Object targetContainer,
Object oldObject,
String oldName)
|
void |
copyComplete(String operation)
Called after all the copy/move operations end, be it successfully or not. |
protected Dialog |
createDialog(Shell shell)
Override of parent. |
protected IQSYSMember |
getFirstSelectedMember()
Get the first selected IQSYSMember |
protected String[] |
getOldNames()
|
protected Object[] |
getOldObjects()
|
protected IQSYSMember[] |
getSelectedMembers()
Get the currently selected IQSYSMember 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 String copyright
protected IQSYSObject targetFile
protected IQSYSMember[] selectedMembers
protected IQSYSMember firstSelection
protected ISelection previousSelection
protected String sourceLibraryFile
protected IHost sourceConnection
protected Vector copiedObjs
Constructor Detail |
---|
public QSYSAbstractMemberAction(Shell parent, int mode)
parent
- Owning shellmode
- Either MODE_COPY or MODE_MOVE from this classpublic QSYSAbstractMemberAction(Shell parent, String label, int mode)
parent
- Owning shelllabel
- mode
- Either MODE_COPY or MODE_MOVE from this classMethod Detail |
---|
protected String[] getOldNames()
SystemBaseCopyAction#getOldNames()
protected IQSYSMember[] getSelectedMembers()
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 Object[] getOldObjects()
Returns an array of IQSYSMember objects
protected SystemSimpleContentElement getTreeModel()
protected SystemSimpleContentElement getTreeInitialSelection()
public void copyComplete(String operation)
protected Object getTargetContainer(Dialog dlg)
protected Dialog createDialog(Shell shell)
protected IQSYSMember getFirstSelectedMember()
public SystemMessage isValid(IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
This is overridden in IQSYSMoveMemberAction
public boolean updateSelection(IStructuredSelection selection)
We simply ensure every selected object is an iseries member
updateSelection
in class QSYSSystemBaseCopyAction
SystemBaseAction#updateSelection(IStructuredSelection)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |