IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.testeditor.common
Class DatasourceSelectionDialog

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.ui.dialogs.SelectionDialog
                  extended by org.eclipse.ui.dialogs.SelectionStatusDialog
                      extended by com.ibm.rational.test.lt.testeditor.common.DatasourceSelectionDialog
All Implemented Interfaces:
IShellProvider, ISelectionStatusValidator

public class DatasourceSelectionDialog
extends SelectionStatusDialog
implements ISelectionStatusValidator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
Window.IExceptionHandler
 
Field Summary
protected  boolean m_warningOff
           
static boolean ms_matchingOnly
           
static boolean ms_ShowUsage
           
 
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
 
Constructor Summary
DatasourceSelectionDialog(Shell parent, CBActionElement anchorElement, TestEditor editor)
           
DatasourceSelectionDialog(Shell parent, TestEditor editor)
           
 
Method Summary
protected  void cancelPressed()
           
protected  void computeResult()
           
 void create()
           
protected  void createButtonsForButtonBar(Composite parent)
           
protected  Control createDialogArea(Composite parent)
           
protected  Composite createSelectionButtons(Composite composite)
           
protected  CheckboxTreeViewer createTreeViewer(Composite parent)
           
protected  IDialogSettings getDialogBoundsSettings()
           
 List getFilters()
           
protected  void handleSelection(CheckStateChangedEvent event)
           
 boolean isHideDataSourceViewLink()
           
protected  void okPressed()
           
protected  void onOptionsToolItemClicked()
           
protected  void onShowDataSourceView()
           
 int open()
           
 void setAnchorElement(CBActionElement anchorElement)
           
 void setHideDataSourceViewLink(boolean hideDataSourceViewLink)
           
 void setInput(Object input)
          Sets the tree input.
 void setSingleSelect(boolean b)
           
 void setSize(int width, int height)
          Sets the size of the tree in unit of characters.
 void setSupportedDataSourcesTypes(String[] supportedDataSourcesTypes)
           
 void setTargetProvider(com.ibm.rational.test.lt.testeditor.views.ISubstitutionTargetProvider targetProvider)
           
 void setUnSupportedDataSourcesTypes(String[] unSupportedDataSourcesTypes)
           
 void setValidator(ISelectionStatusValidator validator)
          Sets an optional validator to check if the selection is valid.
protected  void updateButtonsEnableState(IStatus status)
           
protected  void updateOKStatus()
           
 IStatus validate(Object[] selection)
           
 
Methods inherited from class org.eclipse.ui.dialogs.SelectionStatusDialog
configureShell, createButtonBar, getFirstResult, setImage, setResult, setStatusLineAboveButtons, updateStatus
 
Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog
createMessageArea, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitle
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
close, closeTray, createHelpControl, getLayout, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, createButton, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, 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
 

Field Detail

ms_ShowUsage

public static boolean ms_ShowUsage

ms_matchingOnly

public static boolean ms_matchingOnly

m_warningOff

protected boolean m_warningOff
Constructor Detail

DatasourceSelectionDialog

public DatasourceSelectionDialog(Shell parent,
                                 TestEditor editor)

DatasourceSelectionDialog

public DatasourceSelectionDialog(Shell parent,
                                 CBActionElement anchorElement,
                                 TestEditor editor)
Method Detail

okPressed

protected void okPressed()
Overrides:
okPressed in class SelectionStatusDialog

computeResult

protected void computeResult()
Specified by:
computeResult in class SelectionStatusDialog

createDialogArea

protected Control createDialogArea(Composite parent)
Overrides:
createDialogArea in class Dialog

onOptionsToolItemClicked

protected void onOptionsToolItemClicked()

onShowDataSourceView

protected void onShowDataSourceView()

setSize

public void setSize(int width,
                    int height)
Sets the size of the tree in unit of characters.

Parameters:
width - the width of the tree.
height - the height of the tree.

cancelPressed

protected void cancelPressed()
Overrides:
cancelPressed in class Dialog

createTreeViewer

protected CheckboxTreeViewer createTreeViewer(Composite parent)

handleSelection

protected void handleSelection(CheckStateChangedEvent event)
Parameters:
event -

setInput

public void setInput(Object input)
Sets the tree input.

Parameters:
input - the tree input.

setAnchorElement

public void setAnchorElement(CBActionElement anchorElement)

setValidator

public void setValidator(ISelectionStatusValidator validator)
Sets an optional validator to check if the selection is valid. The validator is invoked whenever the selection changes.

Parameters:
validator - the validator to validate the selection.

createButtonsForButtonBar

protected void createButtonsForButtonBar(Composite parent)
Overrides:
createButtonsForButtonBar in class SelectionDialog

createSelectionButtons

protected Composite createSelectionButtons(Composite composite)

updateOKStatus

protected void updateOKStatus()

open

public int open()
Overrides:
open in class Window

create

public void create()
Overrides:
create in class SelectionStatusDialog

validate

public IStatus validate(Object[] selection)
Specified by:
validate in interface ISelectionStatusValidator

updateButtonsEnableState

protected void updateButtonsEnableState(IStatus status)
Overrides:
updateButtonsEnableState in class SelectionStatusDialog

getFilters

public List getFilters()
Returns:
List

setSingleSelect

public void setSingleSelect(boolean b)

setTargetProvider

public void setTargetProvider(com.ibm.rational.test.lt.testeditor.views.ISubstitutionTargetProvider targetProvider)

setSupportedDataSourcesTypes

public void setSupportedDataSourcesTypes(String[] supportedDataSourcesTypes)

setUnSupportedDataSourcesTypes

public void setUnSupportedDataSourcesTypes(String[] unSupportedDataSourcesTypes)

getDialogBoundsSettings

protected IDialogSettings getDialogBoundsSettings()
Overrides:
getDialogBoundsSettings in class SelectionDialog

isHideDataSourceViewLink

public boolean isHideDataSourceViewLink()

setHideDataSourceViewLink

public void setHideDataSourceViewLink(boolean hideDataSourceViewLink)

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.