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

control.setContent(viewer.getControl());

. Is there some way around this?



ViewerPane viewerPane =new ViewerPane(getSite().getPage(), Nodes2Editor.this) {
@Override
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);
}
@Override
public void requestActivation() {
super.requestActivation();
setCurrentViewerPane(this);
}

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


Current Time: Mon Oct 14 16:31:24 GMT 2019

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

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

Back to the top