public class TreeMasterDetailComposite
extends org.eclipse.swt.widgets.Composite
implements org.eclipse.emf.edit.domain.IEditingDomainProvider
Modifier and Type | Method and Description |
---|---|
void |
addViewModelPropertiesUpdateCallback(ViewModelPropertiesUpdateCallback viewModelPropertiesUpdateCallback)
|
void |
dispose() |
Object |
getCurrentSelection()
Gets the current selection.
|
org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
Gets the editing domain.
|
org.eclipse.jface.viewers.ISelectionProvider |
getMasterDetailSelectionProvider()
Get the master/detail-aware selection provider.
|
org.eclipse.jface.viewers.TreeViewer |
getSelectionProvider()
Deprecated.
Use the
master-detail selection provider , instead},
or refresh() to force a refresh of the tree, or selectAndReveal(Object)
to select and reveal some object in my tree |
boolean |
isReadOnly()
Returns whether I am read-only.
|
void |
refresh()
Request a refresh of my tree.
|
boolean |
registerDetailPanelRenderingFinishedCallback(DetailPanelRenderingFinishedCallback detailPanelRenderingFinishedCallback)
Register a callback that is notified whenever the rendering of a detail panel is finished.
|
boolean |
selectAndReveal(Object selection)
Select and reveal a
selection in my tree. |
void |
setCache(DetailViewCache cache)
Override the default cache implementation.
|
void |
setCache(TreeMasterDetailCache cache)
Deprecated.
As of 1.22, use the
setCache(DetailViewCache) API, instead |
void |
setInput(Object input)
Allows to set a different input for the treeviewer.
|
void |
setSelection(org.eclipse.jface.viewers.ISelection structuredSelection)
Sets the selection.
|
boolean |
unregisterDetailPanelRenderingFinishedCallback(DetailPanelRenderingFinishedCallback detailPanelRenderingFinishedCallback)
Register a callback that is notified whenever the rendering of a detail panel is finished.
|
void |
updateDetailPanel(boolean setFocusToDetail)
Updates the detail panel of the tree master detail.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public void updateDetailPanel(boolean setFocusToDetail)
setFocusToDetail
- true
if the focus should be moved to the detail panelpublic void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public Object getCurrentSelection()
public void setSelection(org.eclipse.jface.viewers.ISelection structuredSelection)
structuredSelection
- the new selection@Deprecated public org.eclipse.jface.viewers.TreeViewer getSelectionProvider()
master-detail selection provider
, instead},
or refresh()
to force a refresh of the tree, or selectAndReveal(Object)
to select and reveal some object in my treegetMasterDetailSelectionProvider()
public org.eclipse.jface.viewers.ISelectionProvider getMasterDetailSelectionProvider()
public void refresh()
public boolean selectAndReveal(Object selection)
selection
in my tree. If the argument is an UniqueSetting
,
then the owner of the setting will be revealed and the
control that edits the setting will be
revealed and focused (if possible) in the object's detail view.selection
- the objet to select and revealtrue
if the selection
was revealed; false
, otherwise, including
the case where the nearest parent object up the tree was revealed insteadpublic org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
getEditingDomain
in interface org.eclipse.emf.edit.domain.IEditingDomainProvider
public void setInput(Object input)
input
- the new input@Deprecated public void setCache(TreeMasterDetailCache cache)
setCache(DetailViewCache)
API, insteadcache
- The TreeMasterDetailCache
to use.public void setCache(DetailViewCache cache)
cache
- the DetailViewCache
to use, or null
to use no cachepublic boolean isReadOnly()
true
if read-onlyTreeMasterDetailSWTBuilder.customizeReadOnly(boolean)
public void addViewModelPropertiesUpdateCallback(ViewModelPropertiesUpdateCallback viewModelPropertiesUpdateCallback)
viewModelPropertiesUpdateCallback
- the callbackpublic boolean registerDetailPanelRenderingFinishedCallback(DetailPanelRenderingFinishedCallback detailPanelRenderingFinishedCallback)
detailPanelRenderingFinishedCallback
- the callbacktrue
if the callback has been added, false
if it was already registeredpublic boolean unregisterDetailPanelRenderingFinishedCallback(DetailPanelRenderingFinishedCallback detailPanelRenderingFinishedCallback)
detailPanelRenderingFinishedCallback
- the callbacktrue
if the callback has been removed, false
if it was not registeredCopyright © 2019. All rights reserved.