public class TestTreeSection extends com.ibm.rational.common.test.editor.framework.kernel.MainEditorSection implements IPropertyChangeListener
| Modifier and Type | Class and Description |
|---|---|
class |
TestTreeSection.ShowDisabledAction |
class |
TestTreeSection.ShowEnabledAction |
BTN_ADD, BTN_DOWN, BTN_INSERT, BTN_REMOVE, BTN_UP, KEY_MULTI, KEY_NAME, m_drillDownAdapter, m_patternFilter, m_removeAction, m_TreeViewACTION_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| Constructor and Description |
|---|
TestTreeSection(TestEditorForm editorForm,
Composite parent) |
| Modifier and Type | Method and Description |
|---|---|
protected Composite |
createClient(Composite parent) |
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.change.ICopiedElementDescriptor 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() |
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.change.ICopiedElementDescriptor descriptor) |
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) |
addDoubleClickListener, addSelectionChangedListener, createContent, createHelpId, createLinkToPropView, fillAddSubMenu, fillInsertSubMenu, getButton, getControlGridData, getDisplayNextPrevAction, getEditor, getForm, getSelection, getSelectionDescription, getSelectTypesAction, getStructuredSelection, getTextFilter, getTreeView, getTreeViewHelper, linkToPropertiesViewActivated, onClearFilterButtonPressed, onSearchOptionsButtonPressed, refreshContextActions, removeDoubleClickListener, removeSelectionChangedListener, setDescription, setHeaderText, setSelection, setStatusLineMessage, update, updateStatusLineexpansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocuscommit, getManagedForm, initialize, isDirty, isStale, markDirty, markStale, refresh, setFormInputpublic TestTreeSection(TestEditorForm editorForm, Composite parent)
editorForm - public void propertyChange(PropertyChangeEvent arg0)
propertyChange in interface IPropertyChangeListenerprotected void createContextMenu()
protected void fillFiltersMenu(IMenuManager manager)
manager - public void setInput(Object object)
setInput in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionpublic void selectionChanged(StructuredSelection oldSelection, StructuredSelection newSelection)
null, and
the newSelection will contain the object to be selected in the tree.
com.ibm.rational.common.editor.framework.internal.editor.AbstractEditorSection#selectionChanged(org.eclipse.jface.viewers.StructuredSelection, org.eclipse.jface.viewers.StructuredSelection)public void dispose()
protected Composite createClient(Composite parent)
createClient in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionpublic boolean isCopyEnabled(Control focusControl, ISelection selection)
isCopyEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean isDeleteEnabled(Control focusControl, ISelection selection)
isDeleteEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean doCopy(Control focusControl, com.ibm.rational.common.test.editor.framework.ccp.provisional.CopyOperation op)
doCopy in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.IGlobalActionsHandlerpublic boolean doCopy(Control focusControl, ISelection selection)
doCopy in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean doSelectAll(Control focusControl, Clipboard clipboard)
false so that the default handler will select entire content of the tree. This method does not call
ITextGlobalActionHandler.doSelectAll(Control, Clipboard)doSelectAll in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerITextGlobalActionHandler.doSelectAll(org.eclipse.swt.widgets.Control, org.eclipse.swt.dnd.Clipboard)public boolean doSelectAll(Control focusControl)
doSelectAll in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean isCutEnabled(Control focusControl, ISelection selection)
isCutEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean doCut(Control focusControl, com.ibm.rational.common.test.editor.framework.ccp.provisional.CutOperation op)
doCut in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.IGlobalActionsHandlerpublic boolean doCut(Control focusControl, ISelection selection)
doCut in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean isPasteEnabled(Control focusControl, String text)
isPasteEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean isPasteEnabled(Control focusControl, com.ibm.rational.common.test.editor.framework.change.ICopiedElementDescriptor descriptor)
isPasteEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.IGlobalActionsHandlerpublic boolean isSelectAllEnabled(Control focusControl)
isSelectAllEnabled in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean doPaste(Control focusControl, com.ibm.rational.common.test.editor.framework.change.ICopiedElementDescriptor descriptor)
doPaste in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.IGlobalActionsHandlerpublic boolean doPaste(Control focusControl, String text)
doPaste in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerpublic boolean doDelete(Control focusControl, ISelection selection)
doDelete in interface com.ibm.rational.common.test.editor.framework.kernel.interfaces.ITextGlobalActionHandlerprotected void fillContextMenu(IMenuManager menu)
fillContextMenu in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionpublic void filterActivated(ViewerFilter filter, boolean add)
"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.filter - ViewerFilter being activated or deactivated.add - boolean true id the filter is activated, false otherwise.protected boolean onFilterTextModified()
onFilterTextModified in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionprotected Tree createTree(Composite parent, com.ibm.rational.common.test.editor.framework.kernel.util.LoadTestWidgetFactory factory)
createTree in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionpublic void setSelection(StructuredSelection ssel, boolean reveal)
setSelection in class com.ibm.rational.common.test.editor.framework.kernel.MainEditorSectionpublic String getPasteActionLabel()
© Copyright IBM Corp. 2016. All rights reserved.