1 problem, 1 question on GridViewer [message #726897] |
Mon, 19 September 2011 20:39 |
|
Hi,
I've got a GridTreeViewer working pretty well as a tree. I have 1 problem and 1 question.
Problem: I can't seem to get the auto-expand to work. I am using both a label provider and group content provider, but whenever I set the autoexpandlevel it is ignored. Does this need to be set in a particular order? I do the following:
(gtv is my GridTreeViewer - and all the columns and column groups are already set up)
MyLabelProvider eglp = new MyLabelProvider(gtv.getGrid());
MyContentProvider egcp = new MyContentProvider();
gtv.setAutoExpandLevel(2); //yes, I have 4 levels to my tree...so this should work
gtv.setContentProvider(egcp);
gtv.setLabelProvider(eglp);
gtv.setInput(myListOfData); //this is actually EList<MyEMFObject>
Question:
Is there no label provider type of thing for the footer? Is it just set the text on each column? Just trying to verify this so that I can code accordingly.
Thanks,
Sharon
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02727 seconds