public class DatasourceSelectionDialog extends SelectionStatusDialog implements ISelectionStatusValidator
Window.IExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
m_warningOff |
static boolean |
ms_matchingOnly |
static boolean |
ms_ShowUsage |
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
Constructor and Description |
---|
DatasourceSelectionDialog(Shell parent,
CBActionElement anchorElement,
TestEditor editor) |
DatasourceSelectionDialog(Shell parent,
TestEditor editor) |
Modifier and Type | Method and Description |
---|---|
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) |
configureShell, createButtonBar, getFirstResult, setImage, setResult, setStatusLineAboveButtons, updateStatus
createMessageArea, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitle
closeTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
applyDialogFont, buttonPressed, close, 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
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
public static boolean ms_ShowUsage
public static boolean ms_matchingOnly
protected boolean m_warningOff
public DatasourceSelectionDialog(Shell parent, TestEditor editor)
public DatasourceSelectionDialog(Shell parent, CBActionElement anchorElement, TestEditor editor)
protected void okPressed()
okPressed
in class SelectionStatusDialog
protected void computeResult()
computeResult
in class SelectionStatusDialog
protected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
protected void onOptionsToolItemClicked()
protected void onShowDataSourceView()
public void setSize(int width, int height)
width
- the width of the tree.height
- the height of the tree.protected void cancelPressed()
cancelPressed
in class Dialog
protected CheckboxTreeViewer createTreeViewer(Composite parent)
protected void handleSelection(CheckStateChangedEvent event)
event
- public void setInput(Object input)
input
- the tree input.public void setAnchorElement(CBActionElement anchorElement)
public void setValidator(ISelectionStatusValidator validator)
validator
- the validator to validate the selection.protected void createButtonsForButtonBar(Composite parent)
createButtonsForButtonBar
in class SelectionDialog
protected void updateOKStatus()
public void create()
create
in class SelectionStatusDialog
public IStatus validate(Object[] selection)
validate
in interface ISelectionStatusValidator
protected void updateButtonsEnableState(IStatus status)
updateButtonsEnableState
in class SelectionStatusDialog
public List getFilters()
public void setSingleSelect(boolean b)
public void setTargetProvider(com.ibm.rational.test.lt.testeditor.views.ISubstitutionTargetProvider targetProvider)
public void setSupportedDataSourcesTypes(String[] supportedDataSourcesTypes)
public void setUnSupportedDataSourcesTypes(String[] unSupportedDataSourcesTypes)
protected IDialogSettings getDialogBoundsSettings()
getDialogBoundsSettings
in class SelectionDialog
public boolean isHideDataSourceViewLink()
public void setHideDataSourceViewLink(boolean hideDataSourceViewLink)
© Copyright IBM Corp. 2013. All rights reserved.