Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.propertypages
Class ServicesPropertyPage


java.lang.Object
  extended by 

org.eclipse.jface.dialogs.DialogPage
      extended by 

org.eclipse.jface.preference.PreferencePage
          extended by 

org.eclipse.ui.dialogs.PropertyPage
              extended by 

org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
                  extended by 
org.eclipse.rse.ui.propertypages.ServicesPropertyPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IPreferencePage, ISystemMessageLine, ISystemMessageLineTarget, IWorkbenchPropertyPage

public abstract class ServicesPropertyPage
extends SystemBasePropertyPage


Field Summary
protected   ServicesForm _form
           
protected   String _hostname
           
protected   IRSESystemType _hosttype
           
protected   ServiceElement _rootElement
           
 
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
ServicesPropertyPage ()
           
 
Method Summary
 boolean applyValues ( IConnectorService connectorService)
           
protected  void commitChanges ()
           
protected   Control createContentArea ( Composite parent)
           Abstract.
protected abstract   ISubSystemConfiguration getCurrentSubSystemConfiguration ()
           
  String getHostname ()
           
protected abstract   ServiceElement[] getServiceElements ()
           
protected   ISubSystem getServiceSubSystem ()
           
  IRSESystemType getSystemType ()
           
protected  void initServices ()
           
 boolean performCancel ()
           
 boolean performOk ()
          Method declared on IPreferencePage.
protected  void revertChanges ()
           
 void setHostname ( String hostname)
           
 void setSystemType ( IRSESystemType 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, createLabeledVerbiage, 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, 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, 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

_form

protected 
ServicesForm _form

_hostname

protected 
String _hostname

_hosttype

protected 
IRSESystemType _hosttype

_rootElement

protected 
ServiceElement _rootElement
Constructor Detail

ServicesPropertyPage

public ServicesPropertyPage()
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

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.

initServices

protected void initServices()

getServiceSubSystem

protected 
ISubSystem getServiceSubSystem()
Returns:
Since:
3.0 returning ISubSystem rather than IServiceSubSystem

getServiceElements

protected abstract 
ServiceElement[] getServiceElements()

getCurrentSubSystemConfiguration

protected abstract 
ISubSystemConfiguration getCurrentSubSystemConfiguration()
Since:
3.0

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.

commitChanges

protected void commitChanges()

revertChanges

protected void revertChanges()

applyValues

public boolean applyValues(
IConnectorService connectorService)

setHostname

public void setHostname(
String hostname)

setSystemType

public void setSystemType(
IRSESystemType systemType)

getHostname

public 
String getHostname()

getSystemType

public 
IRSESystemType getSystemType()

performCancel

public boolean performCancel()
Specified by:
performCancel in interface IPreferencePage
Overrides:
performCancel in class PreferencePage

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire