RSE
Release 1.0

org.eclipse.rse.ui.propertypages
Class ServerLauncherPropertyPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.ui.dialogs.PropertyPage
              extended byorg.eclipse.rse.ui.propertypages.SystemBasePropertyPage
                  extended byorg.eclipse.rse.ui.propertypages.ServerLauncherPropertyPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, ISystemConnectionWizardErrorUpdater, ISystemConnectionWizardPropertyPage, ISystemMessageLine, ISystemMessageLineTarget, IWorkbenchPropertyPage

public class ServerLauncherPropertyPage
extends SystemBasePropertyPage
implements ISystemConnectionWizardPropertyPage, ISystemConnectionWizardErrorUpdater

Property page for editing persistant environment variables for an RSE connection.


Field Summary
protected  String _systemType
           
 
Fields inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
buttonsComposite, contentArea, msgLine, msgLineSet
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ServerLauncherPropertyPage()
          Constructor for ServerLauncherPropertyPage.
 
Method Summary
 void addVerifyListener(ISystemVerifyListener listener)
           
 boolean applyValues(IConnectorService connectorService)
           
protected  Control createContentArea(Composite parent)
          Abstract.
 String getTheErrorMessage()
           
 boolean isPageComplete()
           
 boolean performOk()
          Method declared on IPreferencePage.
 void setHostname(String hostName)
           
 void setSubSystemConfiguration(ISubSystemConfiguration factory)
           
 void setSystemType(String systemType)
           
protected  boolean verifyPageContents()
          Abstract.
 
Methods inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
addFillerLine, addSeparatorLine, clearErrorMessage, clearMessage, configureMessageLine, contributeButtons, createContents, createLabeledCombo, createLabeledLabel, createLabeledText, createLabeledVerbage, getMessageLine, getSystemErrorMessage, grabExcessSpace, okToLeave, setBusyCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setMessage, setMessage, setMessageLine, wantAutomaticValidManagement, wantDefaultAndApplyButton, wantMnemonics
 
Methods inherited from class org.eclipse.ui.dialogs.PropertyPage
getElement, setElement
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, performApply, performCancel, performDefaults, performHelp, setContainer, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.ui.messages.ISystemMessageLine
getErrorMessage, getMessage
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

_systemType

protected String _systemType
Constructor Detail

ServerLauncherPropertyPage

public ServerLauncherPropertyPage()
Constructor for ServerLauncherPropertyPage.

Method Detail

createContentArea

protected Control createContentArea(Composite parent)
Description copied from class: SystemBasePropertyPage
Abstract. You must override.
This is where child classes create their content area versus createContent, in order to have the message line configured for them and mnemonics assigned.

Specified by:
createContentArea in class SystemBasePropertyPage
See Also:
SystemBasePropertyPage.createContentArea(Composite)

verifyPageContents

protected boolean verifyPageContents()
Description copied from class: SystemBasePropertyPage
Abstract. You must override. Return true if no input fields to check.
Validate all the widgets on the page. Based on this, the Eclipse framework will know whether to veto any user attempt to select another property page from the list on the left in the Properties dialog.

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

Specified by:
verifyPageContents in class SystemBasePropertyPage
Returns:
true if there are no errors, false if any errors were found.
See Also:
SystemBasePropertyPage.verifyPageContents()

setSubSystemConfiguration

public void setSubSystemConfiguration(ISubSystemConfiguration factory)
Specified by:
setSubSystemConfiguration in interface ISystemConnectionWizardPropertyPage

setHostname

public void setHostname(String hostName)
Specified by:
setHostname in interface ISystemConnectionWizardPropertyPage

applyValues

public boolean applyValues(IConnectorService connectorService)
Specified by:
applyValues in interface ISystemConnectionWizardPropertyPage

performOk

public boolean performOk()
Description copied from class: SystemBasePropertyPage
Method declared on IPreferencePage. Our implementation is to call okToLeave(), which in turn calls verifyPageContents, returning true iff they do. If you override, call super.performOk() to get default processing, and return false if that returns false.

Specified by:
performOk in interface IPreferencePage
Overrides:
performOk in class SystemBasePropertyPage
Returns:
true if all is well, false if there is an error.
See Also:
IPreferencePage.performOk()

isPageComplete

public boolean isPageComplete()
Specified by:
isPageComplete in interface ISystemConnectionWizardErrorUpdater

addVerifyListener

public void addVerifyListener(ISystemVerifyListener listener)
Specified by:
addVerifyListener in interface ISystemConnectionWizardErrorUpdater

getTheErrorMessage

public String getTheErrorMessage()
Specified by:
getTheErrorMessage in interface ISystemConnectionWizardErrorUpdater

setSystemType

public void setSystemType(String systemType)
Specified by:
setSystemType in interface ISystemConnectionWizardPropertyPage

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.