Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.widgets
Class QSYSSaveAsForm

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.widgets.QSYSSelectQSYSForm
      extended by com.ibm.etools.iseries.rse.ui.widgets.QSYSSaveAsForm
All Implemented Interfaces:
IQSYSSelectionTypes

public class QSYSSaveAsForm
extends QSYSSelectQSYSForm


Field Summary
static String copyright
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSSelectQSYSForm
addButtonCallback, addMode, autoExpandDepth, caller, callerInstanceOfSystemPromptDialog, callerInstanceOfWizardPage, contentsCreated, convertedObjects, defaultConnection, defaultFilters, forceDefaultFiltersNull, initDone, inputProvider, liblQuickFilter, listeners, msgLine, multipleSelectionMode, nameEntryValue, objectMatcher, outerParent, outputConnection, outputObjects, preSelectFilter, ps, ps_composite, rb, selectionType, selectionValidator, showLiblFilter, showPropertySheet, showYourLibrariesPrompt, spacer1, spacer2, sr, srcFilesOnly, tree, treeTip, verbage, verbageLabel
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSSelectionTypes
BROWSEFOR_ANY, BROWSEFOR_COMMAND, BROWSEFOR_CRT_COMMAND, BROWSEFOR_DTAARA, BROWSEFOR_DTAQ, BROWSEFOR_FIELD, BROWSEFOR_FILE, BROWSEFOR_JOB, BROWSEFOR_JOBD, BROWSEFOR_JOBQ, BROWSEFOR_LIBRARY, BROWSEFOR_MEMBER, BROWSEFOR_MESSAGE, BROWSEFOR_MODULE, BROWSEFOR_MSGF, BROWSEFOR_OBJECT, BROWSEFOR_PGM, BROWSEFOR_PGM_MODULE, BROWSEFOR_PGMSRVPGM, BROWSEFOR_PROCEDURE, BROWSEFOR_RECORD, BROWSEFOR_SRVPGM, Copyright
 
Constructor Summary
QSYSSaveAsForm(ISystemMessageLine msgLine, Object caller, int selectionType, boolean srcFilesOnly)
          Constructor
 
Method Summary
 Control createContents(Shell shell, Composite parent)
          In this method, we populate the given SWT container with widgets and return the container to the caller.
 String getFileName()
          Return the name of the selected file to contain the target member
 String getLibraryName()
          Return the name of the library containing the selected file or member
 String getSrcName()
          Return the name of the member from the member name entry field
 boolean isPageComplete()
          This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons.
 void selectionChanged(SelectionChangedEvent e)
          User selected something in the tree.
 void setPreSelection(IHost connection, String libraryName, String p_srcName)
          Set an library to preselect.
 void setPreSelection(IHost connection, String libraryName, String fileName, String mbrName)
          Pre-select a library, file and member.
 void setSrcName(String p_srcName)
          Set the name of the member to pre-fill the member name entry field with
 boolean verify()
          Completes processing of the dialog.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSSelectQSYSForm
addFilter, addFilter, addFilters, addQuickFilter, addSelectionChangedListener, clearErrorMessage, createFilterByPrompting, createQuickFilter, enableAddMode, getAdapter, getFirstSelection, getInitialFocusControl, getLiblQuickFilter, getMultipleSelectionMode, getQuickFilters, getRemoteAdapter, getSelectedConnection, getSelectedObject, getSelectedObjects, getSelections, getShell, getSystemViewForm, internalGetConnection, removeSelectionChangedListener, setAutoExpandDepth, setDefaultConnection, setErrorMessage, setErrorMessage, setMemberTypes, setMessage, setMessageLine, setMultipleSelectionMode, setNameText, setObjectTypes, setPageComplete, setPreSelection, setRootLibrary, setRootLibrary, setSelectionTreeToolTipText, setSelectionValidator, setShowLiblFilter, setShowNewConnectionPrompt, setShowPropertySheet, setShowYourLibrariesPrompt, setSystemConnection, toggleShowPropertySheet
 
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

QSYSSaveAsForm

public QSYSSaveAsForm(ISystemMessageLine msgLine,
                      Object caller,
                      int selectionType,
                      boolean srcFilesOnly)
Constructor

Parameters:
msgLine - A GUI widget capable of writing error messages to.
caller - The wizardpage or dialog hosting this form.
selectionType - An enumeration indicating the type of object to browse for, as specified in IISeriesSelectionTypes
srcFilesOnly - If the selection type is files or members, indicate whether to restrict to source files
See Also:
#setSystemConnection(SystemConnection), QSYSSelectQSYSForm.setShowNewConnectionPrompt(boolean), QSYSSelectQSYSForm.setSelectionTreeToolTipText(String)
Method Detail

createContents

public Control createContents(Shell shell,
                              Composite parent)
In this method, we populate the given SWT container with widgets and return the container to the caller.

Overrides:
createContents in class QSYSSelectQSYSForm
Parameters:
parent - The parent composite

verify

public boolean verify()
Completes processing of the dialog. Intercept of parent method.

Overrides:
verify in class QSYSSelectQSYSForm
Returns:
true if no errors

isPageComplete

public boolean isPageComplete()
Description copied from class: QSYSSelectQSYSForm
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. It returns true if the minimal information is available and is correct.

Overrides:
isPageComplete in class QSYSSelectQSYSForm

getSrcName

public String getSrcName()
Return the name of the member from the member name entry field


setSrcName

public void setSrcName(String p_srcName)
Set the name of the member to pre-fill the member name entry field with


getLibraryName

public String getLibraryName()
Return the name of the library containing the selected file or member


getFileName

public String getFileName()
Return the name of the selected file to contain the target member


setPreSelection

public void setPreSelection(IHost connection,
                            String libraryName,
                            String p_srcName)
Set an library to preselect. This will:

Overrides:
setPreSelection in class QSYSSelectQSYSForm

setPreSelection

public void setPreSelection(IHost connection,
                            String libraryName,
                            String fileName,
                            String mbrName)
Pre-select a library, file and member. This expands the library and selects the file. The entry field is pre-filled with the member name. The OK button is disabled until a different member is selected or typed.


selectionChanged

public void selectionChanged(SelectionChangedEvent e)
User selected something in the tree. This is an intercept of the parent's method so we can process a member selection, and copy the selected member's name to the entry field.

Overrides:
selectionChanged in class QSYSSelectQSYSForm

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.