Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with emf ViewerPane and FilteredTree(modifying editor to use FilteredTree)
Problem with emf ViewerPane and FilteredTree [message #559833] Sun, 19 September 2010 18:53
Jay Norwood is currently offline Jay NorwoodFriend
Messages: 155
Registered: July 2009
Senior Member
The ViewerPane fails to support a FilteredTree in place of a TreeViewer. I get an illegalArgumentException when the ViewerPane code calls


. Is there some way around this?

ViewerPane viewerPane =new ViewerPane(getSite().getPage(), Nodes2Editor.this) {
public Viewer createViewer(Composite composite) {
PatternFilter filter = new PatternFilter();
Boolean useNewLook = false;
FilteredTree ft = new FilteredTree(composite, SWT.FULL_SELECTION/*| SWT.MULTI */| SWT.H_SCROLL
| SWT.V_SCROLL| SWT.BORDER, filter,useNewLook);
TreeViewer tv = ft.getViewer();
return (Viewer) tv;
// return new TreeViewer(composite);
public void requestActivation() {

Previous Topic:[Dawn] Set routing-style to rectilinear
Next Topic:example with Property Columns in editor
Goto Forum:

Current Time: Sat May 30 22:47:48 GMT 2020

Powered by FUDForum. Page generated in 0.02142 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top