Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer does not scroll
TreeViewer does not scroll [message #461041] Thu, 15 September 2005 08:06 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Eclipse 3.1 : dynamic menu from menu bar
Next Topic:Keylistener throws error when Tab is pressed
Goto Forum:
  


Current Time: Fri Mar 29 07:50:19 GMT 2024

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

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

Back to the top