PTP
Release 5.0

org.eclipse.ptp.services.ui.preferences
Class ServiceConfigurationPreferencePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by org.eclipse.ptp.services.ui.preferences.ServiceConfigurationPreferencePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.ui.IWorkbenchPreferencePage

public class ServiceConfigurationPreferencePage
extends org.eclipse.jface.preference.PreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage

This class implements a preference page which can be used to view a list of service configurations, to create new service configurations or to delete existing service configurations. This page also displays a list of projects using a service configuration.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ServiceConfigurationPreferencePage()
           
ServiceConfigurationPreferencePage(java.lang.String title)
           
ServiceConfigurationPreferencePage(java.lang.String title, org.eclipse.jface.resource.ImageDescriptor image)
           
 
Method Summary
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
          Create the contents for this page
 void init(org.eclipse.ui.IWorkbench workbench)
           
protected  void performApply()
          Delete service configurations when Apply button is pressed
 boolean performOk()
          Delete service configurations when Ok button is pressed
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performCancel, performDefaults, performHelp, setContainer, setErrorMessage, 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, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, 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
 

Constructor Detail

ServiceConfigurationPreferencePage

public ServiceConfigurationPreferencePage()

ServiceConfigurationPreferencePage

public ServiceConfigurationPreferencePage(java.lang.String title)

ServiceConfigurationPreferencePage

public ServiceConfigurationPreferencePage(java.lang.String title,
                                          org.eclipse.jface.resource.ImageDescriptor image)
Method Detail

init

public void init(org.eclipse.ui.IWorkbench workbench)
Specified by:
init in interface org.eclipse.ui.IWorkbenchPreferencePage

performOk

public boolean performOk()
Delete service configurations when Ok button is pressed

Specified by:
performOk in interface org.eclipse.jface.preference.IPreferencePage
Overrides:
performOk in class org.eclipse.jface.preference.PreferencePage
Returns:
Status from superclass indicating if Ok processing is to continue

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents for this page

Specified by:
createContents in class org.eclipse.jface.preference.PreferencePage
Parameters:
parent - - The parent widget for the client area

performApply

protected void performApply()
Delete service configurations when Apply button is pressed

Overrides:
performApply in class org.eclipse.jface.preference.PreferencePage

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.