com.ibm.rational.common.test.editor.framework
Class LoadTestTreeSection
java.lang.Object
org.eclipse.swt.accessibility.AccessibleAdapter
org.eclipse.hyades.test.ui.internal.editor.form.base.FormSection
org.eclipse.hyades.test.ui.editor.form.util.EditorSection
com.ibm.rational.common.test.editor.framework.kernel.AbstractEditorSection
com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
com.ibm.rational.common.test.editor.framework.LoadTestTreeSection
- All Implemented Interfaces:
- com.ibm.rational.common.test.editor.framework.kernel.actions.ITestEditorActionIDs, com.ibm.rational.common.test.editor.framework.kernel.interfaces.IGlobalActionsHandler, com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandler, EventListener, org.eclipse.hyades.ui.util.IDisposable, IPropertyChangeListener, AccessibleListener, VerifyKeyListener, org.eclipse.swt.internal.SWTEventListener, ISetSelectionTarget
public class LoadTestTreeSection
- extends com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
Nested classes/interfaces inherited from class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection |
com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection.PromptForFilterOptionsDlg |
Fields inherited from class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection |
BTN_ADD, BTN_DOWN, BTN_INSERT, BTN_REMOVE, BTN_UP, KEY_MULTI, KEY_NAME, m_DependantSections, m_drillDownAdapter, m_patternFilter, m_removeAction, m_TreeView |
Fields inherited from class com.ibm.rational.common.test.editor.framework.kernel.AbstractEditorSection |
m_selection |
Fields inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.FormSection |
addSeparator, client, collapsable, descriptionLabel, descriptionPainted, header, headerPainted, SELECTION, separator, toggle |
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.actions.ITestEditorActionIDs |
ACTION_GROUP_EDIT_END, ACTION_GROUP_EDIT_START, ACTION_GROUP_FILTERS_END, ACTION_GROUP_FILTERS_START, ACTION_GROUP_FIND_END, ACTION_GROUP_FIND_START, ACTION_GROUP_GOTO_END, ACTION_GROUP_GOTO_START, ACTION_GROUP_MODIFY_CONTRIBUTIONS_END, ACTION_GROUP_MODIFY_CONTRIBUTIONS_START, ACTION_GROUP_NEW_END, ACTION_GROUP_NEW_START, ACTION_GROUP_SHOW_END, ACTION_GROUP_SHOW_START, COPY, CUT, DELETE, PASTE, SAVE, SELECT_ALL |
Method Summary |
Composite |
createClient(Composite parent,
com.ibm.rational.common.test.editor.framework.kernel.util.LoadTestWidgetFactory factory)
|
protected void |
createContextMenu()
|
protected Tree |
createTree(Composite parent,
com.ibm.rational.common.test.editor.framework.kernel.util.LoadTestWidgetFactory factory)
|
void |
dispose()
|
boolean |
doCopy(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.CopyOperation op)
|
boolean |
doCopy(Control focusControl,
ISelection selection)
|
boolean |
doCut(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.CutOperation op)
|
boolean |
doCut(Control focusControl,
ISelection selection)
|
boolean |
doDelete(Control focusControl,
ISelection selection)
|
boolean |
doPaste(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.OperationDescriptor descriptor)
|
boolean |
doPaste(Control focusControl,
String text)
|
boolean |
doSelectAll(Control focusControl)
|
boolean |
doSelectAll(Control focusControl,
Clipboard clipboard)
Returns false so that the default handler will select entire content of the tree. |
protected void |
fillContextMenu(IMenuManager menu)
|
protected void |
fillFiltersMenu(IMenuManager manager)
|
void |
filterActivated(ViewerFilter filter,
boolean add)
This method is called from actions that apply or remove filters to test Tree in the editor. |
String |
getPasteActionLabel()
|
IStructuredSelection |
getStructuredSelection()
|
boolean |
isCopyEnabled(Control focusControl,
ISelection selection)
|
boolean |
isCutEnabled(Control focusControl,
ISelection selection)
|
boolean |
isDeleteEnabled(Control focusControl,
ISelection selection)
|
boolean |
isPasteEnabled(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.OperationDescriptor descriptor)
Paste is enabled when all of the following is true:
There is only one item selected in the tree. |
boolean |
isPasteEnabled(Control focusControl,
String text)
|
boolean |
isSelectAllEnabled(Control focusControl)
|
protected boolean |
onFilterTextModified()
|
void |
propertyChange(PropertyChangeEvent arg0)
|
void |
selectionChanged(StructuredSelection oldSelection,
StructuredSelection newSelection)
This method can be called by hyperlink handlers (Layoutproviders) when a link on
details page was clicked. |
void |
setInput(Object object)
|
void |
setSelection(StructuredSelection ssel,
boolean reveal)
|
protected void |
updateActions(ISelection selection)
|
protected void |
updateSections(StructuredSelection selection)
|
Methods inherited from class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection |
addSection, createLinkToPropView, fillAddSubMenu, fillInsertSubMenu, getButton, getControlGridData, getDisplayNextPrevAction, getInput, getSelectedObjects, getSelectionDescription, getSelectTypesAction, getTextFilter, getTreeView, init, initialize, linkToPropertiesViewActivated, onClearFilterButtonPressed, onSearchOptionsButtonPressed, refreshHelpId, setStatusLineMessage, update, updateExternalActions, updateStatusLine |
Methods inherited from class com.ibm.rational.common.test.editor.framework.kernel.AbstractEditorSection |
commitChanges, createClient, createHelpId, getForm, getSectionHeaderLabel, handleAction, sameSelection, sectionChanged, selectReveal, setDirty, setFocus, setReadOnly, setSelection |
Methods inherited from class org.eclipse.hyades.test.ui.editor.form.util.EditorSection |
getClipboard, getEditorForm, getFormWidgetFactory, getHyadesEditorPart, isDirty, isReadOnly, reflow, setFormWidgetFactory, verifyKey |
Methods inherited from class org.eclipse.hyades.test.ui.internal.editor.form.base.FormSection |
canPaste, createControl, createText, createText, createText, createText, doGlobalAction, doToggle, expandTo, fireChangeNotification, fireSelectionNotification, getCollapsable, getDescription, getDescription, getHeaderColorKey, getHeaderText, getHeightHint, getHelp, getName, getWidthHint, isAddSeparator, isDescriptionPainted, isHeaderPainted, sectionChanged, setAddSeparator, setCollapsable, setCollapsed, setDescription, setDescriptionPainted, setHeaderColorKey, setHeaderPainted, setHeaderText, setHeightHint, setWidthHint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadTestTreeSection
public LoadTestTreeSection(LoadTestEditorForm editorForm)
- Parameters:
editorForm
-
propertyChange
public void propertyChange(PropertyChangeEvent arg0)
- Specified by:
propertyChange
in interface IPropertyChangeListener
- Overrides:
propertyChange
in class org.eclipse.hyades.test.ui.internal.editor.form.base.FormSection
createContextMenu
protected void createContextMenu()
fillFiltersMenu
protected void fillFiltersMenu(IMenuManager manager)
- Parameters:
manager
-
setInput
public void setInput(Object object)
- Overrides:
setInput
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
selectionChanged
public void selectionChanged(StructuredSelection oldSelection,
StructuredSelection newSelection)
- This method can be called by hyperlink handlers (Layoutproviders) when a link on
details page was clicked. In this case, the oldSelection will be
null
, and
the newSelection will contain the object to be selected in the tree.
- Specified by:
selectionChanged
in class com.ibm.rational.common.test.editor.framework.kernel.AbstractEditorSection
- See Also:
com.ibm.rational.common.editor.framework.internal.editor.AbstractEditorSection#selectionChanged(org.eclipse.jface.viewers.StructuredSelection, org.eclipse.jface.viewers.StructuredSelection)
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.hyades.ui.util.IDisposable
- Overrides:
dispose
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
createClient
public Composite createClient(Composite parent,
com.ibm.rational.common.test.editor.framework.kernel.util.LoadTestWidgetFactory factory)
- Overrides:
createClient
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
getStructuredSelection
public IStructuredSelection getStructuredSelection()
- Overrides:
getStructuredSelection
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
isCopyEnabled
public boolean isCopyEnabled(Control focusControl,
ISelection selection)
isDeleteEnabled
public boolean isDeleteEnabled(Control focusControl,
ISelection selection)
doCopy
public boolean doCopy(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.CopyOperation op)
doCopy
public boolean doCopy(Control focusControl,
ISelection selection)
doSelectAll
public boolean doSelectAll(Control focusControl,
Clipboard clipboard)
- Returns
false
so that the default handler will select entire content of the tree. This method does not call
ExtActionHandler.doSelectAll(Control, Clipboard)
- See Also:
ITextGlobalActionHandler.doSelectAll(org.eclipse.swt.widgets.Control, org.eclipse.swt.dnd.Clipboard)
doSelectAll
public boolean doSelectAll(Control focusControl)
isCutEnabled
public boolean isCutEnabled(Control focusControl,
ISelection selection)
doCut
public boolean doCut(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.CutOperation op)
doCut
public boolean doCut(Control focusControl,
ISelection selection)
isPasteEnabled
public boolean isPasteEnabled(Control focusControl,
String text)
isPasteEnabled
public boolean isPasteEnabled(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.OperationDescriptor descriptor)
- Paste is enabled when all of the following is true:
- There is only one item selected in the tree.
- Clipboard contains
LTTransfer
transfer type
- Every pasted element is a valid child
isSelectAllEnabled
public boolean isSelectAllEnabled(Control focusControl)
doPaste
public boolean doPaste(Control focusControl,
com.ibm.rational.common.test.editor.framework.ccp.provisional.OperationDescriptor descriptor)
doPaste
public boolean doPaste(Control focusControl,
String text)
doDelete
public boolean doDelete(Control focusControl,
ISelection selection)
fillContextMenu
protected void fillContextMenu(IMenuManager menu)
- Overrides:
fillContextMenu
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
filterActivated
public void filterActivated(ViewerFilter filter,
boolean add)
- This method is called from actions that apply or remove filters to test Tree in the editor. The method sets
header text to
"Test Contents"
(no filters) or "Tree Contents (filtered)"
(at least one filter is active).
Protocol extensions that contribute to "Filters"
submenu are expected to call this method accordingly.
- Parameters:
filter
- ViewerFilter being activated or deactivated.add
- boolean true
id the filter is activated, false
otherwise.
onFilterTextModified
protected boolean onFilterTextModified()
- Overrides:
onFilterTextModified
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
updateSections
protected void updateSections(StructuredSelection selection)
- Overrides:
updateSections
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
updateActions
protected void updateActions(ISelection selection)
createTree
protected Tree createTree(Composite parent,
com.ibm.rational.common.test.editor.framework.kernel.util.LoadTestWidgetFactory factory)
- Overrides:
createTree
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
setSelection
public void setSelection(StructuredSelection ssel,
boolean reveal)
- Overrides:
setSelection
in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection
getPasteActionLabel
public String getPasteActionLabel()
© Copyright IBM Corp. 2012. All rights reserved.