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, updateStatuscreateMessageArea, getDialogBoundsStrategy, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, isResizable, setDialogBoundsSettings, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitlecloseTray, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailableapplyDialogFont, 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, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerpublic 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 SelectionStatusDialogprotected void computeResult()
computeResult in class SelectionStatusDialogprotected Control createDialogArea(Composite parent)
createDialogArea in class Dialogprotected 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 Dialogprotected 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 SelectionDialogprotected void updateOKStatus()
public void create()
create in class SelectionStatusDialogpublic IStatus validate(Object[] selection)
validate in interface ISelectionStatusValidatorprotected void updateButtonsEnableState(IStatus status)
updateButtonsEnableState in class SelectionStatusDialogpublic 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 SelectionDialogpublic boolean isHideDataSourceViewLink()
public void setHideDataSourceViewLink(boolean hideDataSourceViewLink)
© Copyright IBM Corp. 2013. All rights reserved.