PTP
Release 7.0

org.eclipse.ptp.services.ui.dialogs
Class ServiceConfigurationSelectionDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.jface.dialogs.TitleAreaDialog
                  extended by org.eclipse.ptp.services.ui.dialogs.ServiceConfigurationSelectionDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class ServiceConfigurationSelectionDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog

Display a dialog prompting the user to select a service configuration to add to the project. Only service configurations not currently used by the project are displayed.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
 
Constructor Summary
ServiceConfigurationSelectionDialog(org.eclipse.swt.widgets.Shell parentShell, java.util.Set<IServiceConfiguration> currentConfigs)
          Create a dialog listing the service configurations which can be selected for the project
 
Method Summary
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
          Create the widgets used to display the list of available service configurations
 IServiceConfiguration getSelectedConfiguration()
          Return the service configuration selected by the user
 
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceConfigurationSelectionDialog

public ServiceConfigurationSelectionDialog(org.eclipse.swt.widgets.Shell parentShell,
                                           java.util.Set<IServiceConfiguration> currentConfigs)
Create a dialog listing the service configurations which can be selected for the project

Parameters:
parentShell - Shell to use when displaying the dialog
currentConfigs - Set of service configurations currently used by the project
Method Detail

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Create the widgets used to display the list of available service configurations

Overrides:
createDialogArea in class org.eclipse.jface.dialogs.TitleAreaDialog
Parameters:
parent - - The composite widget that is parent to the client area
Returns:
Top level control for client area

getSelectedConfiguration

public IServiceConfiguration getSelectedConfiguration()
Return the service configuration selected by the user

Returns:
Selected service configuration

PTP
Release 7.0

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