Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ScrolledForm odd refresh issues
ScrolledForm odd refresh issues [message #330992] Wed, 20 August 2008 16:48 Go to next message
Pierre Padovani is currently offline Pierre PadovaniFriend
Messages: 6
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 005C4971862574AB_=
Content-Type: text/plain; charset="US-ASCII"

Hi All,
Hopefully this is the correct newsgroup.

I'm building a multipage editor, and one of the editors is a
ScrolledForm, where the top section contains a TreeViewer and the bottom
section contains a TableViewer. I've got a selection listener on the tree
viewer that will call setInput on the table viewer with the selection from
the tree viewer.

When I run this setup, and click on an entry in the tree viewer, both
the tree viewer and table viewer sections refresh. That is the form
sections themselves completely redraw themselves along with the contents
of the tree and table viewers. If I comment out the setInput on the
TableViewer, then I don't get this behavior. (Of course I don't get any
data in the table either! :-) )

If I switch the ScrolledForm to a Form, I don't get this behavior, and
it works fine. However I need the extra room that a ScrolledForm can
provide.

The form body is set with TableWrapLayout, and each section has a
TableWrapData set as layout data. The client composite in each section is
set as a GridLayout.

Thoughts?

Thanks!

Pierre

--=_alternative 005C4971862574AB_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi All,</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; Hopefully this is the
correct newsgroup.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; I'm building a multipage editor,
and one of the editors is a ScrolledForm, where the top section contains
a TreeViewer and the bottom section contains a TableViewer. I've got a
selection listener on the tree viewer that will call setInput on the table
viewer with the selection from the tree viewer.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; When I run this setup, and click
on an entry in the tree viewer, both the tree viewer and table viewer sections
refresh. That is the form sections themselves completely redraw themselves
along with the contents of the tree and table viewers. If I comment out
the setInput on the TableViewer, then I don't get this behavior. (Of course
I don't get any data in the table either! :-) )</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; If I switch the ScrolledForm
to a Form, I don't get this behavior, and it works fine. However I need
the extra room that a ScrolledForm can provide.</font>
<br>
<br><font size=2 face="sans-serif">&nbsp;The form body is set with TableWrapLayout,
and each section has a TableWrapData set as layout data. The client composite
in each section is set as a GridLayout.</font>
<br>
<br><font size=2 face="sans-serif">Thoughts?</font>
<br>
<br><font size=2 face="sans-serif">Thanks!</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; Pierre</font>
<br>
--=_alternative 005C4971862574AB_=--
Re: ScrolledForm odd refresh issues - Solved [message #331006 is a reply to message #330992] Thu, 21 August 2008 02:10 Go to previous message
Pierre Padovani is currently offline Pierre PadovaniFriend
Messages: 6
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 000BF1F5862574AC_=
Content-Type: text/plain; charset="US-ASCII"

Looks like I did a bad thing.

I was setting the message on the form from within the content loader for
the table to "", and this caused the form to redraw itself for some
reason.

Pierre

--=_alternative 000BF1F5862574AC_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Looks like I did a bad thing.</font>
<br>
<br><font size=2 face="sans-serif">I was setting the message on the form
from within the content loader for the table to &quot;&quot;, and this
caused the form to redraw itself for some reason.</font>
<br>
<br><font size=2 face="sans-serif">Pierre</font>
<br>
--=_alternative 000BF1F5862574AC_=--
Previous Topic:[Databinding] Editor (isDirty), PojoObservable and ChangeListener on target to
Next Topic:Host name for Eclipse Application.
Goto Forum:
  


Current Time: Tue Jul 16 15:21:34 GMT 2024

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

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

Back to the top