VELEMENT
- the VElement
public abstract class AbstractJFaceTreeRenderer<VELEMENT extends VElement> extends AbstractSWTRenderer<VELEMENT>
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractJFaceTreeRenderer.TreeTableLabelProvider
The Class TreeTableLabelProvider.
|
CUSTOM_VARIANT
Constructor and Description |
---|
AbstractJFaceTreeRenderer(VELEMENT vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory emfFormsRendererFactory)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addButtons(org.eclipse.jface.viewers.TreeViewer treeViewer,
org.eclipse.jface.viewers.TreeSelection treeSelection,
List<org.eclipse.swt.custom.TreeEditor> editors)
Adds the buttons.
|
protected void |
addTreeEditor(org.eclipse.jface.viewers.TreeViewer treeViewer,
org.eclipse.emf.ecore.EObject view,
List<org.eclipse.swt.custom.TreeEditor> editors)
Adds the tree editor.
|
protected org.eclipse.swt.custom.ScrolledComposite |
createdEditorPane(org.eclipse.swt.widgets.Composite composite)
Created editor pane.
|
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent)
Creates a
TreeViewer . |
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected abstract VCategorizationElement |
getCategorizationElement()
The VCategorizationElement to set the current selection onto.
|
protected abstract org.eclipse.emf.common.util.EList<VAbstractCategorization> |
getCategorizations()
The list of categorizations to display in the tree.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected AbstractJFaceTreeRenderer.TreeTableLabelProvider |
getTreeLabelProvider(org.eclipse.jface.viewers.TreeViewer treeViewer,
org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
The TreeTableLabel provider.
|
protected void |
initTreeViewer(org.eclipse.jface.viewers.TreeViewer treeViewer)
Inits the tree viewer.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
protected void |
setupTreeViewer(org.eclipse.jface.viewers.TreeViewer treeViewer,
org.eclipse.swt.custom.ScrolledComposite editorComposite)
Configures the passed tree viewer.
|
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
public AbstractJFaceTreeRenderer(VELEMENT vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory emfFormsRendererFactory)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
emfFormsRendererFactory
- The EMFFormsRendererFactory
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderer
getGridDescription
in class AbstractSWTRenderer<VELEMENT extends VElement>
gridDescription
- the current SWTGridDescription
protected void dispose()
dispose
in class AbstractSWTRenderer<VELEMENT extends VElement>
AbstractSWTRenderer.dispose()
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.renderControl
in class AbstractSWTRenderer<VELEMENT extends VElement>
cell
- the GridCell
of the control to renderparent
- the Composite
to render onControl
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be foundorg.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer#renderControl(int, org.eclipse.swt.widgets.Composite,
org.eclipse.emf.ecp.view.spi.model.VElement, org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
protected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent)
TreeViewer
. Sub classes can override to influence the TreeViewer
.parent
- the parent Composite
TreeViewer
protected abstract org.eclipse.emf.common.util.EList<VAbstractCategorization> getCategorizations()
VAbstractCategorization
protected abstract VCategorizationElement getCategorizationElement()
protected org.eclipse.swt.custom.ScrolledComposite createdEditorPane(org.eclipse.swt.widgets.Composite composite)
composite
- the compositeprotected void setupTreeViewer(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.swt.custom.ScrolledComposite editorComposite)
treeViewer
- the TreeViewer
to configureeditorComposite
- the composite of the editorprotected AbstractJFaceTreeRenderer.TreeTableLabelProvider getTreeLabelProvider(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.emf.common.notify.AdapterFactory adapterFactory)
treeViewer
- the TreeViewer
adapterFactory
- the AdapterFactory
to useAbstractJFaceTreeRenderer.TreeTableLabelProvider
protected void initTreeViewer(org.eclipse.jface.viewers.TreeViewer treeViewer)
treeViewer
- the tree viewerprotected void addTreeEditor(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.emf.ecore.EObject view, List<org.eclipse.swt.custom.TreeEditor> editors)
treeViewer
- the tree viewerview
- the vieweditors
- the list of tree editorsprotected void addButtons(org.eclipse.jface.viewers.TreeViewer treeViewer, org.eclipse.jface.viewers.TreeSelection treeSelection, List<org.eclipse.swt.custom.TreeEditor> editors)
treeViewer
- the tree viewertreeSelection
- the tree selectioneditors
- the list of tree editorsCopyright © 2018. All rights reserved.