Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » FilteredTree with TreeViewerColumns?
FilteredTree with TreeViewerColumns? [message #780042] Mon, 16 January 2012 23:02 Go to next message
Eclipse UserFriend
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 18:37 Go to previous message
Eclipse UserFriend
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 Jul 03 12:00:17 EDT 2025

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

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

Back to the top