Rational Developer for Power Systems Software
V7.6

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

java.lang.Object
  extended by SystemBaseDialogAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
          extended by com.ibm.etools.iseries.rse.ui.actions.QSYSCopyLibraryAction

public class QSYSCopyLibraryAction
extends QSYSSystemBaseDialogAction

The action that displays the Copy Library dialog. Note that copying a library is different from all other remote object copy actions:


Nested Class Summary
protected  class QSYSCopyLibraryAction.CopyLibraryJob
          The job that changes object.
 
Field Summary
protected  Cursor busyCursor
           
static String copyright
           
protected  QSYSRemoteLibrary firstLibrary
           
protected  int mode
           
static int MODE_COPY
           
static int MODE_MOVE
           
protected  String[] newNames
           
protected  ISelection previousSelection
           
protected  Exception runException
           
protected  QSYSRemoteLibrary[] selectedObjects
           
 
Constructor Summary
QSYSCopyLibraryAction(Shell parent)
          Constructor
 
Method Summary
 boolean checkObjectType(Object selectedObject)
          Called by SystemBaseAction when selection is set.
protected  Dialog createDialog(Shell shell)
          Return the dialog to display.
protected  SystemMessage getCopyingMessage()
          Get the generic "Copying..." or "Moving..." message
protected  SystemMessage getCopyingMessage(String oldName, String newName)
          Get the specific "Copying %1 to %2..." or "Moving %1 to %2..." message
protected  Object getDialogValue(Dialog dlg)
          Required by parent.
protected  QSYSRemoteLibrary getFirstSelectedLibrary()
          Get the first selected ISeriesLibrary
protected  QSYSRemoteLibrary[] getSelectedLibraries()
          Get the currently selected ISeriesLibrary objects
protected  void showOperationCancelledMessage(Shell shell)
          Show an error message when the user cancels the operation.
protected  void showOperationErrorMessage(Shell shell, SystemMessageException exc)
          Show an error message when the operation fails.
protected  void showOperationErrorMessage(Shell shell, Throwable exc)
          Show an error message when the operation fails.
protected  void showOperationMessage(Exception exc, Shell shell)
          Helper method to show an error message resulting from the attempted operation.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
getIBMiConnection, updateSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

MODE_COPY

public static final int MODE_COPY

MODE_MOVE

public static final int MODE_MOVE

mode

protected int mode

firstLibrary

protected QSYSRemoteLibrary firstLibrary

selectedObjects

protected QSYSRemoteLibrary[] selectedObjects

newNames

protected String[] newNames

runException

protected Exception runException

busyCursor

protected Cursor busyCursor

previousSelection

protected ISelection previousSelection
Constructor Detail

QSYSCopyLibraryAction

public QSYSCopyLibraryAction(Shell parent)
Constructor

Method Detail

checkObjectType

public boolean checkObjectType(Object selectedObject)
Called by SystemBaseAction when selection is set. Our opportunity to verify we are allowed for this selected type.


createDialog

protected Dialog createDialog(Shell shell)
Return the dialog to display. In our case this is the copy libraries dialog.


getDialogValue

protected Object getDialogValue(Dialog dlg)
Required by parent. We use it to return the new name


getSelectedLibraries

protected QSYSRemoteLibrary[] getSelectedLibraries()
Get the currently selected ISeriesLibrary objects


getFirstSelectedLibrary

protected QSYSRemoteLibrary getFirstSelectedLibrary()
Get the first selected ISeriesLibrary


getCopyingMessage

protected SystemMessage getCopyingMessage()
Get the generic "Copying..." or "Moving..." message


getCopyingMessage

protected SystemMessage getCopyingMessage(String oldName,
                                          String newName)
Get the specific "Copying %1 to %2..." or "Moving %1 to %2..." message


showOperationMessage

protected void showOperationMessage(Exception exc,
                                    Shell shell)
Helper method to show an error message resulting from the attempted operation.


showOperationErrorMessage

protected void showOperationErrorMessage(Shell shell,
                                         Throwable exc)
Show an error message when the operation fails. Shows a common message by default. Overridable.


showOperationErrorMessage

protected void showOperationErrorMessage(Shell shell,
                                         SystemMessageException exc)
Show an error message when the operation fails. Shows a SystemMessage that was encapsulated in a SystemMessage exception Overridable.


showOperationCancelledMessage

protected void showOperationCancelledMessage(Shell shell)
Show an error message when the user cancels the operation. Shows a common message by default. Overridable.


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.