tags:

views:

166

answers:

0

We have a ContentOutlinePage that includes a GEF TreeViewer. Simply put, by calling setContents on the TreeViewer, GEF builds TreeEditParts using an EditPartFactory, as is typical for GEF.

Internally, the GEF TreeViewer creates a Tree control.

public Control createControl(Composite parent) {
    Tree tree = new Tree(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    setControl(tree);
    return tree;
}

I would like to replace this tree with a FilteredTree. However, because a FilteredTree extends a Composite and not a Tree, nothing works because the AbstractTreeEditParts & viewers assume they are dealing with a Tree or a TreeItem.

Has anyone implemented a FilteredTree for GEF edit parts?