|
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 SystemPromptDialog com.ibm.etools.iseries.rse.ui.dialogs.SaveFileTransferAndRestoreDialog
public class SaveFileTransferAndRestoreDialog
This dialog is launched when user selects "Restore on iSeries..." on a .savf local file, and it prompts the user for the information we will need to do the action.
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSObjectPromptListener |
---|
copyright |
Constructor Summary | |
---|---|
SaveFileTransferAndRestoreDialog(Shell shell)
Constructor |
Method Summary | |
---|---|
protected Control |
createInner(Composite parent)
|
protected IQSYSLibrary |
createLibrary(Shell shell,
IBMiConnection connection,
String libName,
String libType,
String libText,
String libAut,
String libCrtAut,
String libAddlParms)
Helper method to create a new library |
protected Control |
getInitialFocusControl()
|
String |
getRestoreLibraryName()
|
IQSYSLibrary |
getRSETempLibrary(Shell shell,
IBMiConnection connection,
String libName,
String msgId)
Helper method to create, if necessary, the RSE temporary library. |
int |
getSaveFileCommand()
Gets the save file command. |
String |
getSaveFileLibraryName()
Gets the library name of the save file. |
void |
libraryNameChanged(SystemMessage errorMessage)
The user has entered or selected text in the library entry field and it has been validated by the ISeriesLibraryPrompt. |
void |
modifyText(ModifyEvent e)
|
void |
objectNameChanged(SystemMessage errorMessage)
The user has entered or selected text in the object entry field and it has been validated by the ISeriesObjectPrompt. |
protected boolean |
processOK()
Called when user presses OK button. |
void |
setLocalFileName(String fullName,
String name)
Set the selected local file (eg, xxx.savf) |
protected SystemMessage |
verify(boolean setFocus)
Verify the contents of the dialog |
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
Constructor Detail |
---|
public SaveFileTransferAndRestoreDialog(Shell shell)
Method Detail |
---|
public void setLocalFileName(String fullName, String name)
protected Control createInner(Composite parent)
public int getSaveFileCommand() throws IOException
IOException
- if an I/O error occurs.public String getSaveFileLibraryName() throws IOException
IOException
- if an I/O error occurs.protected Control getInitialFocusControl()
public void objectNameChanged(SystemMessage errorMessage)
IQSYSObjectPromptListener
objectNameChanged
in interface IQSYSObjectPromptListener
errorMessage
- Will be null if the input is valid, or a translated msg if notpublic void libraryNameChanged(SystemMessage errorMessage)
IQSYSLibraryPromptListener
libraryNameChanged
in interface IQSYSLibraryPromptListener
errorMessage
- Will be null if the input is valid, or a translated msg if notpublic void modifyText(ModifyEvent e)
protected SystemMessage verify(boolean setFocus)
protected boolean processOK()
public String getRestoreLibraryName()
protected IQSYSLibrary createLibrary(Shell shell, IBMiConnection connection, String libName, String libType, String libText, String libAut, String libCrtAut, String libAddlParms) throws SystemMessageException
shell
- - the shell to host any prompts or message dialogsconnection
- - the iSeries connection object to use to create the librarylibName
- - the name of the library to createlibType
- - "*PROD" or "*TEST".libText
- - optional text description for the new library. We will add single quote delimiterslibAut
- - optional value for the AUT parameter. Eg, "*ALL"libCrtAut
- - optional value for the CRTAUT parameter. Eg, "*ALL"libAddlParms
- - any additional fully-formed parameters to tack onto the end of the CRTLIB command
SystemMessageException
public IQSYSLibrary getRSETempLibrary(Shell shell, IBMiConnection connection, String libName, String msgId) throws SystemMessageException
shell
- - the shell to host any prompts or message dialogsconnection
- - the ISeries connection object to use to create the librarylibName
- - the name for the new library. Pass null for the default name of QRSETEMPmsgId
- - the id of the message to use to ask the user if they want to create the library. Pass
null to use our default message or *NONE for no message, else the message is assumed to have one substitution
variable, which is the name of the library.
SystemMessageException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |