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
John Lussmyer is currently offline John LussmyerFriend
Messages: 100
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
John Lussmyer is currently offline John LussmyerFriend
Messages: 100
Registered: December 2010
Senior Member
So, apparently it's impossible to use a FilteredTree if you use TreeColumnViewers?
Previous Topic:Occasional Exit hang/crash
Next Topic:can't add org.eclipse.core.expressions
Goto Forum:
  


Current Time: Mon Nov 23 16:50:19 GMT 2020

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

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

Back to the top