Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.actions.cmds
Class QSYSNewMemberAction

java.lang.Object
  extended by SystemBaseWizardAction
      extended by com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseWizardAction
          extended by com.ibm.etools.iseries.rse.ui.actions.cmds.AbstractQSYSNewObjectAction
              extended by com.ibm.etools.iseries.rse.ui.actions.cmds.QSYSNewMemberAction

public class QSYSNewMemberAction
extends AbstractQSYSNewObjectAction

The action for New->Member, when a file object is selected. Prompts user for ADDPFM command.


Field Summary
static String Copyright
           
protected  boolean inpIsSrcFile
           
protected  String inpMbrName
           
protected  String inpMbrType
           
protected  boolean openInEditor
           
protected  String outMbrName
           
protected  String outMbrType
           
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.cmds.AbstractQSYSNewObjectAction
conn400, firstFilterString, inpFilter, inpLibName, inpObjAut, inpObjName, inpObjText, outCanonicalName, outCmdString, outLibName, outObjAut, outObjName, outObjText
 
Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseWizardAction
copyright
 
Constructor Summary
QSYSNewMemberAction(Shell parent)
          Constructor for ISeriesNewMemberAction.
 
Method Summary
protected  AbstractNewQSYSObjectWizard createNewObjectWizard(IBMiConnection connection)
          Abstract method in parent class.
 String getFileName()
          Get the user-entered name for the file containing the new member.
 String getMemberName()
          Get the user-entered name for the new member.
 String getMemberText()
          Get the user-entered text for the new member.
 String getMemberType()
          Get the user-entered type for the new member.
static String getMemberType(String sFileName)
          Attempt to intelligently default a member type based on the name of the file.
protected  void postProcessWizard(IWizard wizard)
          Override of a parent method that is a hook to allow us to extract data from the wizard, into our instance variables, to enable our getter methods.
 void reset()
          Reset instance variables between "runs" of this action
 void setFileName(String file)
          Set file name.
 void setIsSourceFile(boolean isSrcFile)
          Set if the file we are adding a member to is a source file versus a data file
 void setMemberName(String mbr)
          Set member name
 void setMemberText(String mbrtext)
          Set member text Same as calling setObjectText
 void setMemberType(String mbrtype)
          Set member type
 void setOpenInEditor(boolean openInEditor)
          Set whether to open the new member in the editor or not.
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.cmds.AbstractQSYSNewObjectAction
createWizard, getAuthority, getCanonicalName, getCommandString, getLibraryName, getObjectName, getObjectText, setAuthority, setLibraryName, setObjectName, setObjectText
 
Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseWizardAction
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

inpMbrName

protected String inpMbrName

inpMbrType

protected String inpMbrType

outMbrName

protected String outMbrName

outMbrType

protected String outMbrType

inpIsSrcFile

protected boolean inpIsSrcFile

openInEditor

protected boolean openInEditor
Constructor Detail

QSYSNewMemberAction

public QSYSNewMemberAction(Shell parent)
Constructor for ISeriesNewMemberAction.

Parameters:
parent - Shell hosting this
Method Detail

getMemberType

public static String getMemberType(String sFileName)
Attempt to intelligently default a member type based on the name of the file.

Parameters:
sFileName - - the name of the file. Eg QRPGLESRC
best - guess at the member type. Eg RPGLE

createNewObjectWizard

protected AbstractNewQSYSObjectWizard createNewObjectWizard(IBMiConnection connection)
Abstract method in parent class. Create the wizard which must be a subclass of AbstractNewISeriesObjectWizard

Specified by:
createNewObjectWizard in class AbstractQSYSNewObjectAction

reset

public void reset()
Reset instance variables between "runs" of this action

Overrides:
reset in class AbstractQSYSNewObjectAction

setOpenInEditor

public void setOpenInEditor(boolean openInEditor)
Set whether to open the new member in the editor or not. Default is true if input is a source file.


setFileName

public void setFileName(String file)
Set file name. Same as calling setObjectName


setIsSourceFile

public void setIsSourceFile(boolean isSrcFile)
Set if the file we are adding a member to is a source file versus a data file


setMemberName

public void setMemberName(String mbr)
Set member name


setMemberType

public void setMemberType(String mbrtype)
Set member type


setMemberText

public void setMemberText(String mbrtext)
Set member text Same as calling setObjectText


postProcessWizard

protected void postProcessWizard(IWizard wizard)
Override of a parent method that is a hook to allow us to extract data from the wizard, into our instance variables, to enable our getter methods.

Overrides:
postProcessWizard in class AbstractQSYSNewObjectAction

getMemberText

public String getMemberText()
Get the user-entered text for the new member. Same as calling getObjectText


getMemberType

public String getMemberType()
Get the user-entered type for the new member.


getMemberName

public String getMemberName()
Get the user-entered name for the new member.


getFileName

public String getFileName()
Get the user-entered name for the file containing the new member. Same as calling getObjectName


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.