Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.actions
Class QSYSMoveObjectAction

java.lang.Object
  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)
          Constructor.
 
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

copyright

public static String copyright
Constructor Detail

QSYSMoveObjectAction

public QSYSMoveObjectAction(Shell parent)
Constructor.

Parameters:
parent -
Method Detail

doCopy

protected boolean doCopy(Object targetContainer,
                         Object oldObject,
                         String newName,
                         IProgressMonitor monitor)
                  throws Exception
Overrides:
doCopy in class QSYSCopyObjectAction
Parameters:
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
Throws:
Exception
See Also:
SystemBaseCopyAction#doCopy(IProgressMonitor, Object, String, String)

isValid

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.

Overrides:
isValid in class QSYSCopyObjectAction

copyComplete

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

Overrides:
copyComplete in class QSYSCopyObjectAction

Rational Developer for Power Systems Software
V7.6

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.