Rational Developer for Power Systems Software

Class QSYSMoveObjectAction

  extended by SystemBaseCopyAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseCopyAction
          extended by com.ibm.etools.iseries.rse.ui.actions.QSYSCopyObjectAction
              extended by com.ibm.etools.iseries.rse.ui.actions.QSYSMoveObjectAction

public class QSYSMoveObjectAction
extends QSYSCopyObjectAction

Move selected objects action.

Field Summary
static String copyright
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSCopyObjectAction
copiedObjs, firstSelection, previousSelection, selectedObjects, sourceConnection, sourceLibrary, targetLibrary, targetObject
Constructor Summary
QSYSMoveObjectAction(Shell parent)
Method Summary
 void copyComplete(String operation)
          Called after all the copy/move operations end, be it successfully or not.
protected  boolean doCopy(Object targetContainer, Object oldObject, String newName, IProgressMonitor monitor)
 SystemMessage isValid(IHost selectedConnection, Object[] selectedObjects, ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
          The user has selected a remote object.
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSCopyObjectAction
checkForCollision, createDialog, getFirstSelectedObject, getOldNames, getOldObjects, getSelectedObjects, getTargetContainer, getTreeInitialSelection, getTreeModel
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseCopyAction
getIBMiConnection, getObjectSubSystem, updateSelection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static String copyright
Constructor Detail


public QSYSMoveObjectAction(Shell parent)

parent -
Method Detail


protected boolean doCopy(Object targetContainer,
                         Object oldObject,
                         String newName,
                         IProgressMonitor monitor)
                  throws Exception
doCopy in class QSYSCopyObjectAction
monitor - Usually not needed
targetContainer - will be the ISeriesLibrary object selected to move into
oldObject - will be the ISeriesObject object currently being moved
newName - will be the new name to give the oldObject on move
See Also:
SystemBaseCopyAction#doCopy(IProgressMonitor, Object, String, String)


public SystemMessage isValid(IHost selectedConnection,
                             Object[] selectedObjects,
                             ISystemRemoteElementAdapter[] remoteAdaptersForSelectedObjects)
Description copied from class: QSYSCopyObjectAction
The user has selected a remote object. Return null if OK is to be enabled, or a SystemMessage if it is not to be enabled. The message will be displayed on the message line.

isValid in class QSYSCopyObjectAction


public void copyComplete(String operation)
Called after all the copy/move operations end, be it successfully or not. Your opportunity to display completion or do post-copy selections/refreshes

copyComplete in class QSYSCopyObjectAction

Rational Developer for Power Systems Software

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.