public abstract class DefaultTestLayoutProvider extends ExtLayoutProvider
ExtLayoutProvider.ExpandBlockAction| Modifier and Type | Field and Description |
|---|---|
static String |
_OPTIONS_ID |
HL_COMMAND, HL_DEST_OBJECT, HL_DESTINATION| Constructor and Description |
|---|
DefaultTestLayoutProvider() |
| Modifier and Type | Method and Description |
|---|---|
Composite |
drawBottomPart(Composite parent,
boolean sNew) |
protected void |
drawOptions(CTabFolder folder,
boolean sNew) |
Composite |
drawUpperPart(SashForm parent,
boolean sNew) |
void |
flushCachedData() |
protected CTabFolder |
getFolder() |
<T extends com.ibm.rational.common.test.editor.framework.kernel.interfaces.IOptionsHandler> |
getOptionsHandler(Class<T> handlerClass)
Returns one option handler that is an instance of the specified class.
|
protected int |
getTabLinksThreshold()
Returns minimum number of optons tabs for which no links need to be drawn.
|
protected boolean |
isValidFeature(String attribute)
Verifies that the feature is enabled for the given test.
|
protected boolean |
isValidType(String type)
Verifies that the given test type (specified via testOptions extension point) is applicable to this Test.
|
boolean |
layoutControls(CBActionElement selectedElement)
Implementing classes should override and provide UI for editing.
|
void |
linkActivated(Control linkLabel) |
boolean |
linkActivated2(Object data) |
boolean |
navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor targetDescriptor) |
boolean |
refreshControls(CBActionElement selectedElement)
Implementing classes should override and provide UI for editing.
|
protected void |
setFolder(CTabFolder folder) |
beforeHide, createAdvancedControls, createAlwaysLogUi, createExceptionHandling, createExceptionsUi, createRequirements, createRequirementsUi, createSashForm, createSashFormBlock, dispose, enableComposite, fixSashColors, getAdvancedTabbed, getConfigElem, getDetails, getMultiSelectLayoutProvider, getReqUi, getTextField, isInitialized, isShowAdvancedTab, isShowExceptionHandlingUi, keyReleased, modifyText, mouseDoubleClick, objectChanged, onTabSelected, refreshDescription, setDetails, setFocusTo, setInitializationData, setInitialized, setReqUi, setSelection, setTabVisible, widgetSelectedaddField, beforeShow, displayBooleanValue, displayNumericValue, displayOptionsAsCombo, displayOptionsAsComboWithToggle, displayOptionsAsRadioButtons, displayTextValue, displayTimePeriodValue, displayTimePeriodValue, getControl, getCtrlName, getCurrentField, getField, getLastField, hidden, isForceUpdate, keyPressed, linkActivated, linkEntered, linkExited, mouseDown, mouseUp, refreshTree, removeField, setButtonLayoutData, setControlName, setCtrlText, setCurrentField, setForceUpdate, setGridData_Fill, setGridData_Hor, setHyperLink, setLayout, setStyledTextValue, setText, updateEnabledState, updateFieldsFromModel, updateTreeView, widgetDefaultSelectedgetFactory, getSelection, getTestEditor, getToolkit, isNewSelection, layoutControls, refreshControls, setMultiSelectLayoutProvider, setNewSelection, setTestEditor, supportsMultiEditclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTestEditor, setTestEditorpublic static String _OPTIONS_ID
public <T extends com.ibm.rational.common.test.editor.framework.kernel.interfaces.IOptionsHandler> T getOptionsHandler(Class<T> handlerClass)
T - handlerClass - protected boolean isValidFeature(String attribute)
getTestEditor()
will return a valid TestEditor object.
This implementation always returns true.
Editors that support multiple features need to override this method and supply proper checks.
attribute - String feature_id specified via extension.public void flushCachedData()
flushCachedData in class com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProviderprotected boolean isValidType(String type)
getTestEditor()
will return a valid TestEditor object.
This implementation performs the following check:
return ( type != null ) && getTestEditor().getTest().getType().equals( type );
Client typically do not need to overridethis method.
type - String type specified via extension.protected void drawOptions(CTabFolder folder, boolean sNew)
public Composite drawUpperPart(SashForm parent, boolean sNew)
parent - true if there was anything to display, false otherwise.public Composite drawBottomPart(Composite parent, boolean sNew)
parent - true if there was anything to display, false otherwise.public boolean layoutControls(CBActionElement selectedElement)
ExtLayoutProvidersuper.layoutControls(selection)layoutControls in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProviderlayoutControls in class ExtLayoutProviderselectedElement - CBActionElementtrue. .com.ibm.rational.common.editor.framework.kernel.interfaces.ILayoutProvider#layoutControls(org.eclipse.jface.viewers.StructuredSelection)protected int getTabLinksThreshold()
Labels for links and popup menu items are the same as labels of the tabs.
public void linkActivated(Control linkLabel)
linkActivated in class com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProviderpublic boolean linkActivated2(Object data)
public boolean refreshControls(CBActionElement selectedElement)
ExtLayoutProvidersuper.refreshControls(selection)refreshControls in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProviderrefreshControls in class ExtLayoutProvidertrue.com.ibm.rational.common.editor.framework.kernel.interfaces.ILayoutProvider#refreshControls(org.eclipse.jface.viewers.StructuredSelection)protected CTabFolder getFolder()
protected void setFolder(CTabFolder folder)
public boolean navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor targetDescriptor)
navigateTo in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProvidernavigateTo in class ExtLayoutProviderILayoutProvider.navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor)© Copyright IBM Corp. 2013. All rights reserved.