com.ibm.rational.test.lt.testeditor.common
Class DatasourceSelectionDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.TrayDialog
org.eclipse.ui.dialogs.SelectionDialog
org.eclipse.ui.dialogs.SelectionStatusDialog
com.ibm.rational.test.lt.testeditor.common.DatasourceSelectionDialog
- All Implemented Interfaces:
- IShellProvider, ISelectionStatusValidator
public class DatasourceSelectionDialog
- extends SelectionStatusDialog
- implements ISelectionStatusValidator
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 |
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.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 |
ms_ShowUsage
public static boolean ms_ShowUsage
ms_matchingOnly
public static boolean ms_matchingOnly
m_warningOff
protected boolean m_warningOff
DatasourceSelectionDialog
public DatasourceSelectionDialog(Shell parent,
TestEditor editor)
DatasourceSelectionDialog
public DatasourceSelectionDialog(Shell parent,
CBActionElement anchorElement,
TestEditor editor)
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)
© Copyright IBM Corp. 2012. All rights reserved.