|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.rational.common.test.editor.framework.kernel.AbstractLayoutProvider
com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider
com.ibm.rational.common.test.editor.framework.extensions.ExtLayoutProvider
com.ibm.rational.common.test.editor.framework.extensions.DefaultTestLayoutProvider
public abstract class DefaultTestLayoutProvider
Default layout provider to be used for root test object. This class loads and displays options.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.rational.common.test.editor.framework.extensions.ExtLayoutProvider |
---|
ExtLayoutProvider.ExpandBlockAction |
Field Summary | |
---|---|
static String |
_OPTIONS_ID
|
Fields inherited from class com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider |
---|
HL_COMMAND, HL_DEST_OBJECT, HL_DESTINATION |
Fields inherited from class com.ibm.rational.common.test.editor.framework.kernel.AbstractLayoutProvider |
---|
m_details |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProvider |
---|
CTRL_NAME |
Constructor Summary | |
---|---|
DefaultTestLayoutProvider()
|
Method Summary | |
---|---|
Composite |
drawBottomPart(Composite parent,
boolean sNew)
|
protected void |
drawOptions(CTabFolder folder,
boolean sNew)
|
Composite |
drawUpperPart(SashForm parent,
boolean sNew)
|
void |
flushCachedData()
|
protected CTabFolder |
getFolder()
|
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)
|
Methods inherited from class com.ibm.rational.common.test.editor.framework.extensions.ExtLayoutProvider |
---|
beforeHide, createAdvancedControls, createAlwaysLogUi, createExceptionHandling, createExceptionsUi, createRequirements, createRequirementsUi, createSashForm, createSashFormBlock, enableComposite, fixSashColors, getAdvancedTabbed, getConfigElem, getDetails, getMultiSelectLayoutProvider, getReqUi, getTextField, isInitialized, isShowAdvancedTab, isShowExceptionHandlingUi, keyReleased, modifyText, mouseDoubleClick, objectChanged, onTabSelected, refreshDescription, setDetails, setFocusTo, setInitializationData, setInitialized, setReqUi, setSelection, setTabVisible, widgetSelected |
Methods inherited from class com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider |
---|
addField, beforeShow, displayBooleanValue, displayNumericValue, displayOptionsAsCombo, displayOptionsAsComboWithToggle, displayOptionsAsRadioButtons, displayTextValue, displayTimePeriodValue, displayTimePeriodValue, getControl, getCtrlName, getCurrentField, getField, hidden, isForceUpdate, keyPressed, linkEntered, linkExited, mouseDown, mouseUp, refreshTree, removeField, setButtonLayoutData, setControlName, setCtrlText, setCurrentField, setForceUpdate, setGridData_Fill, setGridData_Hor, setHyperLink, setLayout, setStyledTextValue, setText, updateEnabledState, updateFieldsFromModel, updateTreeView, widgetDefaultSelected |
Methods inherited from class com.ibm.rational.common.test.editor.framework.kernel.AbstractLayoutProvider |
---|
dispose, getFactory, getSelection, getTestEditor, isNewSelection, layoutControls, refreshControls, setMultiSelectLayoutProvider, setNewSelection, setTestEditor, supportsMultiEdit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.rational.common.test.editor.framework.extensions.IExtensiblePrivider |
---|
getTestEditor, setTestEditor |
Field Detail |
---|
public static String _OPTIONS_ID
Constructor Detail |
---|
public DefaultTestLayoutProvider()
Method Detail |
---|
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 interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.IResetable
flushCachedData
in class ExtLayoutProvider
IResetable.flushCachedData()
protected 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)
ExtLayoutProvider
super.layoutControls(selection)
layoutControls
in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProvider
layoutControls
in class ExtLayoutProvider
selectedElement
- CBActionElement
true
. .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 interface org.eclipse.hyades.test.ui.editor.form.base.IHyperlinkListener
linkActivated
in class com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider
public boolean linkActivated2(Object data)
public boolean refreshControls(CBActionElement selectedElement)
ExtLayoutProvider
super.refreshControls(selection)
refreshControls
in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ILayoutProvider
refreshControls
in class ExtLayoutProvider
true
.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.ILayoutProvider
navigateTo
in class ExtLayoutProvider
ILayoutProvider.navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor)
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |