public class AlignmentViewContentProvider extends ReverseCellGraphContentProvider
ReverseCellGraphContentProvider
with the option to add
ViewerFilter
s to filter cells. Also if the input is a (incomplete)
type cell all its property cells and matching type cells will be shown, and
inherited property cells will connect to the correct properties.Constructor and Description |
---|
AlignmentViewContentProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(org.eclipse.jface.viewers.ViewerFilter filter)
Adds the given filter to the list of registered filters.
|
protected Object[] |
getEdges(Iterable<?> cells)
Get all edges for the given cells.
|
Object[] |
getElements(Object input) |
void |
removeFilter(org.eclipse.jface.viewers.ViewerFilter filter)
Removes one occurrence of
filter from the registered filters
if possible. |
getDestination, getSource
addEdges
dispose, getInstance, inputChanged
protected Object[] getEdges(Iterable<?> cells)
CellGraphContentProvider
getEdges
in class CellGraphContentProvider
cells
- an iterable of Cell
s, other objects will be ignoredCellGraphContentProvider.getEdges(java.lang.Iterable)
public Object[] getElements(Object input)
getElements
in interface org.eclipse.jface.viewers.IStructuredContentProvider
getElements
in interface org.eclipse.zest.core.viewers.IGraphContentProvider
getElements
in class CellGraphContentProvider
CellGraphContentProvider.getElements(java.lang.Object)
public void addFilter(org.eclipse.jface.viewers.ViewerFilter filter)
ViewerFilter.select(org.eclipse.jface.viewers.Viewer, Object, Object)
method will be used with null, null and the cell which is in question.filter
- the filter to addpublic void removeFilter(org.eclipse.jface.viewers.ViewerFilter filter)
filter
from the registered filters
if possible.filter
- the filter to be removedBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a