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.TreeViewer |
getSelectionProvider()
Gets the selection provider.
|
boolean |
registerDetailPanelRenderingFinishedCallback(DetailPanelRenderingFinishedCallback detailPanelRenderingFinishedCallback)
Register a callback that is notified whenever the rendering of a detail panel is finished.
|
void |
setCache(TreeMasterDetailCache cache)
Allows to override the default cache implementation by the provided one.
|
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 selectionpublic org.eclipse.jface.viewers.TreeViewer getSelectionProvider()
public org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
getEditingDomain
in interface org.eclipse.emf.edit.domain.IEditingDomainProvider
public void setInput(Object input)
input
- the new inputpublic void setCache(TreeMasterDetailCache cache)
cache
- The TreeMasterDetailCache
to use.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.