public class TestEditorForm extends com.ibm.rational.common.test.editor.framework.kernel.AbstractTestEditorForm implements ISelectionProvider
| Modifier and Type | Field and Description |
|---|---|
protected TestTreeSection |
treeSection |
| Constructor and Description |
|---|
TestEditorForm(TestEditor testEditor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDoubleClickListener(IDoubleClickListener listener) |
void |
addSelectionChangedListener() |
void |
addSelectionChangedListener(ISelectionChangedListener listener) |
protected void |
applyLayout(Composite parent) |
protected void |
applyLayoutData(SashForm sashForm) |
protected void |
createDefaultProviders(TestEditor editor)
Creates default providers used to manage model elements in the editor.
|
protected void |
createDetailsPart(Composite parent) |
protected void |
createMasterPart(Composite parent) |
protected TestTreeSection |
createTreeSection(Composite parent) |
protected void |
displayDetails(IStructuredSelection selection) |
protected void |
disposeMasterPart() |
com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider |
getActiveLayoutProvider()
Returns current layout provider.
|
TestEditor |
getHostTestEditor()
Returns
TestEditor |
com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection |
getMainSection()
Returns Main/Tree editor section
|
ISelection |
getSelection() |
TestTreeSection |
getTreeSection()
Returns Main/Tree editor section
|
boolean |
isUpdate() |
void |
markDirty()
Marks host test editor as dirty.
|
boolean |
navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor targetDescriptor) |
protected void |
registerPages(com.ibm.rational.ttt.common.protocols.ui.miniform.MiniDetailsPart detailsPart) |
void |
removeDoubleClickListener(IDoubleClickListener listener) |
void |
removeSelectionChangedListener() |
void |
removeSelectionChangedListener(ISelectionChangedListener listener) |
void |
selectReveal(ISelection selection)
Displays selection in the tree.
|
Control |
setFocusTo(String fieldName,
int cursorPos,
int selectionLen)
Sets focus and selection to the named control.
|
void |
setInput(CBTest test) |
void |
setSelection(ISelection selection) |
void |
setUpdate(boolean update) |
createContent, createToolBarActions, getContentProvider, getContentProvider, getControl, getFactory, getLabelProvider, getLabelProvider, getTestEditor, getToolkit, getWidgetFactory, setWeightsprotected TestTreeSection treeSection
public TestEditorForm(TestEditor testEditor)
public void setInput(CBTest test)
protected void applyLayout(Composite parent)
applyLayout in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected void applyLayoutData(SashForm sashForm)
applyLayoutData in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected void createMasterPart(Composite parent)
createMasterPart in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected void disposeMasterPart()
disposeMasterPart in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected TestTreeSection createTreeSection(Composite parent)
protected void createDetailsPart(Composite parent)
createDetailsPart in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected void createDefaultProviders(TestEditor editor)
public void setUpdate(boolean update)
public boolean isUpdate()
protected void registerPages(com.ibm.rational.ttt.common.protocols.ui.miniform.MiniDetailsPart detailsPart)
registerPages in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockprotected void displayDetails(IStructuredSelection selection)
displayDetails in class com.ibm.rational.ttt.common.protocols.ui.miniform.MiniMasterDetailsBlockpublic TestTreeSection getTreeSection()
TestTreeSectionpublic com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection getMainSection()
getMainSection in class com.ibm.rational.common.test.editor.framework.kernel.AbstractTestEditorFormMainEditorSectionpublic TestEditor getHostTestEditor()
TestEditorgetHostTestEditor in class com.ibm.rational.common.test.editor.framework.kernel.AbstractTestEditorFormTestEditorpublic Control setFocusTo(String fieldName, int cursorPos, int selectionLen)
getLayoutProvider
and delegates the operation to it. LT_DefaultLayoutProvider finds
ExtLayoutProvider for the currently selected model element, and delegates
operation to it.
This method is subject to change in the future version of the product.
fieldName - field to setFocus tocursorPos - caret offset inside the fieldselectionLen - length of selectionpublic boolean navigateTo(com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITargetDescriptor targetDescriptor)
public void markDirty()
public void selectReveal(ISelection selection)
public com.ibm.rational.common.test.editor.framework.kernel.InteractiveLayoutProvider getActiveLayoutProvider()
nullExtLayoutProviderpublic void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener in interface ISelectionProviderpublic ISelection getSelection()
getSelection in interface ISelectionProviderpublic void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener in interface ISelectionProviderpublic void setSelection(ISelection selection)
setSelection in interface ISelectionProviderpublic void addDoubleClickListener(IDoubleClickListener listener)
public void removeDoubleClickListener(IDoubleClickListener listener)
public void addSelectionChangedListener()
public void removeSelectionChangedListener()
© Copyright IBM Corp. 2016. All rights reserved.