public abstract class AbstractEClassTreeSelectionComposite extends AbstractFilteredSelectionComposite<org.eclipse.jface.viewers.TreeViewer>
Constructor and Description |
---|
AbstractEClassTreeSelectionComposite(Collection<org.eclipse.emf.ecore.EPackage> unsupportedEPackages,
Collection<org.eclipse.emf.ecore.EPackage> filteredEPackages,
Collection<org.eclipse.emf.ecore.EClass> filteredEClasses)
Constructor setting the necessary data for selecting the
EClasses . |
Modifier and Type | Method and Description |
---|---|
protected void |
collapsViewer()
Subclasses can redefine the collaps behavior of the viewer.
|
protected org.eclipse.jface.viewers.TreeViewer |
createViewer(org.eclipse.swt.widgets.Composite composite)
Creates a
StructuredViewer on top of the provided Composite . |
void |
dispose()
Disposes this composite provider.
|
protected void |
expandViewer()
Subclasses can redefine the expand behavior of the viewer.
|
protected ECPViewerFilter |
getFilter()
Returns a Filter to use.
|
protected abstract boolean |
isCheckedTree()
Whether the Tree is a checked tree.
|
createUI, getSelection, getViewer
public AbstractEClassTreeSelectionComposite(Collection<org.eclipse.emf.ecore.EPackage> unsupportedEPackages, Collection<org.eclipse.emf.ecore.EPackage> filteredEPackages, Collection<org.eclipse.emf.ecore.EClass> filteredEClasses)
EClasses
.unsupportedEPackages
- EPackages
that are not supported and will not be shownfilteredEPackages
- EPackages
to be shownfilteredEClasses
- EClasses
to be shownprotected ECPViewerFilter getFilter()
AbstractFilteredSelectionComposite
getFilter
in class AbstractFilteredSelectionComposite<org.eclipse.jface.viewers.TreeViewer>
ECPViewerFilter
to useprotected abstract boolean isCheckedTree()
protected org.eclipse.jface.viewers.TreeViewer createViewer(org.eclipse.swt.widgets.Composite composite)
AbstractFilteredSelectionComposite
StructuredViewer
on top of the provided Composite
. The result is the created
StructuredViewer
.createViewer
in class AbstractFilteredSelectionComposite<org.eclipse.jface.viewers.TreeViewer>
composite
- the Composite
to create the viewer onStructuredViewer
protected void expandViewer()
AbstractFilteredSelectionComposite
expandViewer
in class AbstractFilteredSelectionComposite<org.eclipse.jface.viewers.TreeViewer>
protected void collapsViewer()
AbstractFilteredSelectionComposite
collapsViewer
in class AbstractFilteredSelectionComposite<org.eclipse.jface.viewers.TreeViewer>
public void dispose()
Copyright © 2019. All rights reserved.