Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » FilteredTree with TreeViewerColumns?
FilteredTree with TreeViewerColumns? [message #780042] Tue, 17 January 2012 04:02 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 105
Registered: December 2010
Senior Member
I have a TreeViewer with TreeViewerColumns work fine.
I'd like to try using a FilteredTree.
I haven't yet found a way to do that, as FilteredTree apparently doesn't use a TreeColumnLayout(). I found some example code to handle that, but it just results in a blank view.

My original TreeViewer
tcl_composite = new TreeColumnLayout();
composite.setLayout(tcl_composite);
mtreeViewer = new TreeViewer(composite, SWT.BORDER | SWT.FULL_SELECTION);


What I tried replacing it with:

tcl_composite = new TreeColumnLayout();
mFilteredTree = new FilteredTree( composite, SWT.BORDER | SWT.FULL_SELECTION, new PatternFilter(), true){
	@Override
	protected Control createTreeControl(Composite parent, int style) {
		Control c = super.createTreeControl(parent, style);
		c.setLayoutData(null);
		c.getParent().setLayout(tcl_composite);
		return c;
		}
	};
mtreeViewer = mFilteredTree.getViewer();


So, how am I supposed to use TreeColumnViewers with a FilteredTree?
Re: FilteredTree with TreeViewerColumns? [message #786053 is a reply to message #780042] Sun, 29 January 2012 23:37 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 105
Registered: December 2010
Senior Member
So, apparently it's impossible to use a FilteredTree if you use TreeColumnViewers?
Previous Topic:DeltaPack 3.6.2 using Eclipse 4.1 - export fails
Next Topic:can't add org.eclipse.core.expressions
Goto Forum:
  


Current Time: Thu Apr 25 08:00:32 GMT 2024

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

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

Back to the top