public class DefaultTreeMasterDetailCustomization extends DefaultTreeViewerCustomization implements TreeMasterDetailSWTCustomization
TreeMasterDetailSWTCustomization
.Constructor and Description |
---|
DefaultTreeMasterDetailCustomization()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
createDetailComposite(org.eclipse.swt.widgets.Composite parent)
Called to create the detail composite on the right.
|
boolean |
enableVerticalCopy()
Defines whether the grid will allow to vertically copy values.
|
int |
getInitialTreeWidth()
Returns the initial width for the composite displaying the tree.
|
ViewModelService[] |
getViewModelServices(VView view,
org.eclipse.emf.ecore.EObject eObject)
Returns newly created view model services which will be used when the given view for the given object is
rendered.
|
void |
setDetailComposite(DetailCompositeBuilder detailComposite)
Sets the detail composite builder.
|
void |
setInitialTreeWidth(TreeWidthProvider width)
Sets the tree width provider.
|
void |
setViewModelServices(ViewModelServiceProvider viewServiceProvider)
Sets the view model services provider.
|
createTree, customizeMenu, customizeMenu, customizeMenu, dispose, getAdapterFactoryContentProvider, getComposedAdapterFactory, getContentProvider, getDragListener, getDragOperations, getDragTransferTypes, getDropListener, getDropOperations, getDropTransferTypes, getInitialSelection, getLabelDecorator, getLabelProvider, getMenu, getViewerFilters, hasDND, setContentProvider, setDragAndDrop, setInitialSelection, setLabelDecorator, setLabelProvider, setMenu, setTree, setViewerFilters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTree
getContentProvider
getDragListener, getDragOperations, getDragTransferTypes, getDropListener, getDropOperations, getDropTransferTypes, hasDND
getInitialSelection
getLabelProvider
getViewerFilters
getMenu
getLabelDecorator
dispose
public DefaultTreeMasterDetailCustomization()
public int getInitialTreeWidth()
TreeWidthProvider
getInitialTreeWidth
in interface TreeWidthProvider
public org.eclipse.swt.widgets.Composite createDetailComposite(org.eclipse.swt.widgets.Composite parent)
DetailCompositeBuilder
createDetailComposite
in interface DetailCompositeBuilder
parent
- the parent compositepublic ViewModelService[] getViewModelServices(VView view, org.eclipse.emf.ecore.EObject eObject)
ViewModelServiceProvider
getViewModelServices
in interface ViewModelServiceProvider
view
- the view to be renderedeObject
- the object to be renderedpublic void setDetailComposite(DetailCompositeBuilder detailComposite)
detailComposite
- the builderpublic void setInitialTreeWidth(TreeWidthProvider width)
width
- the providerpublic void setViewModelServices(ViewModelServiceProvider viewServiceProvider)
viewServiceProvider
- the providerpublic boolean enableVerticalCopy()
enableVerticalCopy
in interface DetailCompositeBuilder
DetailCompositeBuilder.enableVerticalCopy()
Copyright © 2019. All rights reserved.