Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.wizards
Class RPGProcedureWizardMainPage

java.lang.Object
  extended by AbstractSystemWizardPage
      extended by com.ibm.etools.iseries.edit.wizards.RPGProcedureWizardMainPage

public class RPGProcedureWizardMainPage
extends AbstractSystemWizardPage


Field Summary
protected  Button codeCB
           
static String copyright
           
protected  SystemMessage errorMessage
           
protected  Button exportCB
           
protected  Label externalLbl
           
static String[] extprocs
           
static int MPROC_IDX
           
protected  RPGProcedureParametersForm parameterForm
           
protected  Control parameterTable
           
static int PGM_IDX
           
protected  RPGProcedure proc
           
protected  Combo procType
           
protected  Label procTypeLbl
           
static String[] procTypes
           
protected  Button refreshOutline
           
protected  Button returnCB
           
protected  Button serializeCB
           
static int SPROC_CL_IDX
           
static int SPROC_CN_IDX
           
static int SPROC_CW_IDX
           
static int SPROC_IDX
           
protected  Text textExternal
           
protected  Text textName
           
protected  Text textPurpose
           
protected  RPGProcedureWizard wizard
           
 
Constructor Summary
RPGProcedureWizardMainPage(RPGProcedureWizard wizard, String pageID, String titleKey, String descriptionKey, String helpID)
           
 
Method Summary
 Control createContents(Composite arg0)
           
 String getExternalName()
          Return the external name of the procedure.
protected  Control getInitialFocusControl()
           
 IWizardPage getNextPage()
           
 Object getOutputObject()
           
 String getProcedureName()
          Return the name of the procedure
 String getProcedurePurpose()
          Return the purpose of the procedure
 boolean getRefreshOutlineView()
           
 void handleEvent(Event e)
          Handles events generated by controls on this page.
 boolean hasNextPage()
           
protected  boolean internalIsPageComplete()
          Do page completion testing beyond what the base class does.
 boolean isErrInNext()
           
 boolean isOpdesc()
           
 boolean isPageComplete()
           
 void modifyText(ModifyEvent e)
           
 boolean performFinish()
           
protected  Control performFinishValidation()
          Do validation beyond what the base class does, when Finish is pressed.
protected  void prepareControls()
          Pre-fill any child-class-unique controls with passed-in data, and set any keystroke listeners...
 void setInputObject(Object inputObject)
           
 void setOpdesc(boolean opdesc)
           
protected  void sizeControls(Composite composite_prompts, int nbrColumns)
          Adjust the size of any child-class-unique controls...
 void validateInput(Control skipControl, boolean setFocus)
           
 void widgetDefaultSelected(SelectionEvent e)
          private void promptMember(boolean isPrototype) { browseMemberAction = new ISeriesSelectMemberAction(getShell()); browseMemberAction.setShowPropertySheet(true, false); browseMemberAction.setShowNewConnectionPrompt(false); browseMemberAction.setDialogTitle(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_TITLE)); if (isPrototype) browseMemberAction.setMessage(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_PROTOMSG)); else browseMemberAction.setMessage(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_PROCMSG)); browseMemberAction.setAutoExpandDepth(1); browseMemberAction.run(); if (!browseMemberAction.wasCancelled()) { String absolutName = ""; String name = browseMemberAction.getSelectedName(); if (name != null) absolutName += name; name = ((ISeriesSelectMemberAction)browseMemberAction).getSelectedFileName(); if (name != null) absolutName = name + "/" + absolutName; name = ((ISeriesSelectMemberAction)browseMemberAction).getSelectedLibraryName(); if (name != null) absolutName = name + "/" + absolutName; try { ISeriesEditableSrcPhysicalFileMember openMember = new ISeriesEditableSrcPhysicalFileMember(browseMemberAction.getSelectedMember()); if (!openMember.canWrite()) System.out.println("Can't write"); } catch (SystemMessageException sme) { SystemMessage message = sme.getSystemMessage(); // if there is no error message, then issue one...
 void widgetSelected(SelectionEvent e)
           
 
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

wizard

protected RPGProcedureWizard wizard

procTypes

public static final String[] procTypes

extprocs

public static final String[] extprocs

PGM_IDX

public static final int PGM_IDX
See Also:
Constant Field Values

MPROC_IDX

public static final int MPROC_IDX
See Also:
Constant Field Values

SPROC_IDX

public static final int SPROC_IDX
See Also:
Constant Field Values

SPROC_CL_IDX

public static final int SPROC_CL_IDX
See Also:
Constant Field Values

SPROC_CW_IDX

public static final int SPROC_CW_IDX
See Also:
Constant Field Values

SPROC_CN_IDX

public static final int SPROC_CN_IDX
See Also:
Constant Field Values

procType

protected Combo procType

textName

protected Text textName

textExternal

protected Text textExternal

textPurpose

protected Text textPurpose

exportCB

protected Button exportCB

serializeCB

protected Button serializeCB

returnCB

protected Button returnCB

codeCB

protected Button codeCB

procTypeLbl

protected Label procTypeLbl

externalLbl

protected Label externalLbl

parameterForm

protected RPGProcedureParametersForm parameterForm

parameterTable

protected Control parameterTable

errorMessage

protected SystemMessage errorMessage

refreshOutline

protected Button refreshOutline

proc

protected RPGProcedure proc
Constructor Detail

RPGProcedureWizardMainPage

public RPGProcedureWizardMainPage(RPGProcedureWizard wizard,
                                  String pageID,
                                  String titleKey,
                                  String descriptionKey,
                                  String helpID)
Method Detail

getProcedureName

public String getProcedureName()
Return the name of the procedure


getProcedurePurpose

public String getProcedurePurpose()
Return the purpose of the procedure


getExternalName

public String getExternalName()
Return the external name of the procedure.


handleEvent

public void handleEvent(Event e)
Handles events generated by controls on this page. Overridden from parent.


prepareControls

protected void prepareControls()
Pre-fill any child-class-unique controls with passed-in data, and set any keystroke listeners...


sizeControls

protected void sizeControls(Composite composite_prompts,
                            int nbrColumns)
Adjust the size of any child-class-unique controls...


performFinishValidation

protected Control performFinishValidation()
Do validation beyond what the base class does, when Finish is pressed. Return the control to set focus to if any error is found. Also, set the errorMessage instance variable if an error is found. Further, set any newXXX instance variables you want to access via getXXX methods after successful finish.


internalIsPageComplete

protected boolean internalIsPageComplete()
Do page completion testing beyond what the base class does. Return true if it is ok to enable Finish.


createContents

public Control createContents(Composite arg0)

getInitialFocusControl

protected Control getInitialFocusControl()

getOutputObject

public Object getOutputObject()

setInputObject

public void setInputObject(Object inputObject)

getNextPage

public IWizardPage getNextPage()

isErrInNext

public boolean isErrInNext()

hasNextPage

public boolean hasNextPage()

performFinish

public boolean performFinish()

isPageComplete

public boolean isPageComplete()

widgetSelected

public void widgetSelected(SelectionEvent e)

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent e)
private void promptMember(boolean isPrototype) { browseMemberAction = new ISeriesSelectMemberAction(getShell()); browseMemberAction.setShowPropertySheet(true, false); browseMemberAction.setShowNewConnectionPrompt(false); browseMemberAction.setDialogTitle(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_TITLE)); if (isPrototype) browseMemberAction.setMessage(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_PROTOMSG)); else browseMemberAction.setMessage(IBMiEditWidzardResources.RESID_PROCEDURE_EXPORT_PROMPT_BROWSE_PROCMSG)); browseMemberAction.setAutoExpandDepth(1); browseMemberAction.run(); if (!browseMemberAction.wasCancelled()) { String absolutName = ""; String name = browseMemberAction.getSelectedName(); if (name != null) absolutName += name; name = ((ISeriesSelectMemberAction)browseMemberAction).getSelectedFileName(); if (name != null) absolutName = name + "/" + absolutName; name = ((ISeriesSelectMemberAction)browseMemberAction).getSelectedLibraryName(); if (name != null) absolutName = name + "/" + absolutName; try { ISeriesEditableSrcPhysicalFileMember openMember = new ISeriesEditableSrcPhysicalFileMember(browseMemberAction.getSelectedMember()); if (!openMember.canWrite()) System.out.println("Can't write"); } catch (SystemMessageException sme) { SystemMessage message = sme.getSystemMessage(); // if there is no error message, then issue one... // String strMessage = view.query("messageText"); // if (strMessage==null || strMessage.trim().length()==0) { // view.doDefaultCommand("set messageText "+message.getFullMessageID()+": "+message.getLevelOneText()); // view.doDefaultCommand("screenShow"); // } } if (isPrototype) { protoMbr = browseMemberAction.getSelectedMember(); prototypeFile.setText(absolutName); } else { procMbr = browseMemberAction.getSelectedMember(); procedureFile.setText(absolutName); } } }


modifyText

public void modifyText(ModifyEvent e)

validateInput

public void validateInput(Control skipControl,
                          boolean setFocus)

isOpdesc

public boolean isOpdesc()
Returns:

setOpdesc

public void setOpdesc(boolean opdesc)
Parameters:
b -

getRefreshOutlineView

public boolean getRefreshOutlineView()

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.