TreeViewer does not scroll [message #461041] |
Thu, 15 September 2005 08:06 |
Eclipse User |
|
|
|
Originally posted by: morincer.gmail.com
I am creating multi-page editor plug-in. On one of its pages I want
to place scrollable tree. I do it using
this.viewer = new TreeViewer(this, SWT.V_SCROLL);
viewer.setContentProvider(this.manager);
viewer.setLabelProvider(this.manager);
viewer.setInput(this.manager);
viewer.setSorter(this.manager.new Sorter());
But when this tree grows up, it goes beyond borders of the page and
does not scroll (it neither shows scrollbar, nor reacts of cursor
movements).
What goes wrong?
|
|
|
Re: TreeViewer does not scroll [message #461074 is a reply to message #461041] |
Thu, 15 September 2005 13:29 |
Eclipse User |
|
|
|
Originally posted by: morincer.gmail.com
15.09.2005 12:06:24
Andrei Makarov <morincer@gmail.com> wrote in message
<dgba20$4l6$1@news.eclipse.org>
> I am creating multi-page editor plug-in. On one of its pages I want
> to place scrollable tree. I do it using
> this.viewer = new TreeViewer(this, SWT.V_SCROLL);
> viewer.setContentProvider(this.manager);
> viewer.setLabelProvider(this.manager);
> viewer.setInput(this.manager);
> viewer.setSorter(this.manager.new Sorter());
> But when this tree grows up, it goes beyond borders of the page and
> does not scroll (it neither shows scrollbar, nor reacts of cursor
> movements).
> What goes wrong?
Addition: it seems that the treeviewer does not count its size
correctly - if I enlarge the editor's window, the treeviewer shows
the full tree and if I expand nodes - the scrollbar becomes visible.
But if I reduce size of the window - the bottom corner goes out of
window. Any help is strictly appreciated
|
|
|
Powered by
FUDForum. Page generated in 0.03244 seconds