Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.propertypages
Class CommandExecutionPropertyPage

java.lang.Object
  extended by SystemBasePropertyPage
      extended by com.ibm.etools.iseries.rse.ui.propertypages.CommandExecutionPropertyPage
All Implemented Interfaces:
IQSYSLibraryPromptListener, IQSYSObjectPromptListener

public class CommandExecutionPropertyPage
extends SystemBasePropertyPage
implements IQSYSObjectPromptListener

This property page is for properties related to command execution, including compiles and user-defined commands and actions. It appears on all subsystems for iSeries connections.

For each property in this page,the user can elect to inherit the property from the Command Execution preference page setting (the default) or override it here locally for this connection.


Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSObjectPromptListener
copyright
 
Constructor Summary
CommandExecutionPropertyPage()
          Constructor
 
Method Summary
protected  void addDependentWidget(InheritButton toggle, Control widget, boolean inheritedValue, boolean localValue)
          Add a dependent widget to a particular toggle button, with a boolean setting
protected  void addDependentWidget(InheritButton toggle, Control widget, Object inheritedValue, Object localValue)
          Add a dependent widget to a particular toggle button
protected  Control createContentArea(Composite parent)
          Build up content area of page
protected  InheritButton createToggleButton(Composite parent)
          Create a toggle button for deciding between inherited or set-locally
protected  QSYSCommandSubSystem getCommandSubSystem()
          Get the iSeries Objects subsystem from the selected object input
protected  String getSBMJOBParameters()
          Get the SBMJOB parameters
protected  IISeriesSubSystem getSubSystem()
          Get the subsystem from the selected object input
 void libraryNameChanged(SystemMessage errorMessage)
          Callback from JobD prompt.
 void objectNameChanged(SystemMessage errorMessage)
          Callback from JobD prompt.
protected  void performDefaults()
          Performs special processing when this page's Defaults button has been pressed.
 boolean performOk()
          Method declared on IPreferencePage.
protected  void processBrowseObjectLibrary()
          User has pressed the Browse button beside the Object Library prompt.
protected  void processPromptParms()
          User has pressed the Prompt button beside the SBMJOB parameters prompt.
protected  void setToggleState(InheritButton toggle, boolean toRight)
          Set toggle button state.
protected  SystemMessage validateObjectLibrary()
          Validate text, as entered, into Object Library prompt
protected  SystemMessage validateSBMJOBParms()
          Validate text, as entered, into SBMJOB Parms prompt
protected  boolean verifyPageContents()
          Validate all the widgets on the page
protected  boolean wantDefaultAndApplyButton()
          Return false if you don't want to see apply and default buttons.
 void widgetDefaultSelected(SelectionEvent event)
          User has pressed Enter on a button...
 void widgetSelected(SelectionEvent event)
          User has pressed a button...
 
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
Constructor Detail

CommandExecutionPropertyPage

public CommandExecutionPropertyPage()
Constructor

Method Detail

wantDefaultAndApplyButton

protected boolean wantDefaultAndApplyButton()
Return false if you don't want to see apply and default buttons. This is queried by the default implementation of createContents and the default is false, we don't want to see them.

We return true


verifyPageContents

protected boolean verifyPageContents()
Validate all the widgets on the page

Subclasses should override to do full error checking on all the widgets on the page.


getSubSystem

protected IISeriesSubSystem getSubSystem()
Get the subsystem from the selected object input


getCommandSubSystem

protected QSYSCommandSubSystem getCommandSubSystem()
Get the iSeries Objects subsystem from the selected object input


createContentArea

protected Control createContentArea(Composite parent)
Build up content area of page


createToggleButton

protected InheritButton createToggleButton(Composite parent)
Create a toggle button for deciding between inherited or set-locally


addDependentWidget

protected void addDependentWidget(InheritButton toggle,
                                  Control widget,
                                  Object inheritedValue,
                                  Object localValue)
Add a dependent widget to a particular toggle button


addDependentWidget

protected void addDependentWidget(InheritButton toggle,
                                  Control widget,
                                  boolean inheritedValue,
                                  boolean localValue)
Add a dependent widget to a particular toggle button, with a boolean setting


setToggleState

protected void setToggleState(InheritButton toggle,
                              boolean toRight)
Set toggle button state.

Parameters:
toggle - -> the button to set the state for
toRight - -> true if the button is to be toggled to the right, false if to the left (inherit)

widgetSelected

public void widgetSelected(SelectionEvent event)
User has pressed a button...


widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent event)
User has pressed Enter on a button...


processBrowseObjectLibrary

protected void processBrowseObjectLibrary()
User has pressed the Browse button beside the Object Library prompt. Process it


processPromptParms

protected void processPromptParms()
User has pressed the Prompt button beside the SBMJOB parameters prompt. Process it.


getSBMJOBParameters

protected String getSBMJOBParameters()
Get the SBMJOB parameters


validateObjectLibrary

protected SystemMessage validateObjectLibrary()
Validate text, as entered, into Object Library prompt


validateSBMJOBParms

protected SystemMessage validateSBMJOBParms()
Validate text, as entered, into SBMJOB Parms prompt


performOk

public boolean performOk()
Method declared on IPreferencePage. Called when OK or Apply pressed.


performDefaults

protected void performDefaults()
Performs special processing when this page's Defaults button has been pressed.

This is a framework hook method for sublcasses to do special things when the Defaults button has been pressed. Subclasses may override, but should call super.performDefaults.

We reset all buttons to toggle to the left (inherit)


objectNameChanged

public void objectNameChanged(SystemMessage errorMessage)
Callback from JobD prompt. Called when user makes changes to the object name, and after validation.

Specified by:
objectNameChanged in interface IQSYSObjectPromptListener
Parameters:
errorMessage - Will be null if the input is valid, or a translated msg if not

libraryNameChanged

public void libraryNameChanged(SystemMessage errorMessage)
Callback from JobD prompt. Called when user makes changes to the library name, and after validation.

Specified by:
libraryNameChanged in interface IQSYSLibraryPromptListener
Parameters:
errorMessage - Will be null if the input is valid, or a translated msg if not

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.