Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Section.reflow() should be public? (forms)
Section.reflow() should be public? (forms) [message #283609] Thu, 07 April 2005 00:54
Eclipse UserFriend
All,

I'm using an expanding org.eclipse.ui.forms.widgets.Section, and
have a need to dispose() and add new Labels within a Composite that is the
Section's client.

I've found that the only way for the Section to adjust to the new size (my
Labels contain images) is to call setExpanded as shown in the code below.
It seems like a hack, but has the side-effect of calling reflow()
on the Section.

Wouldn't it be better to make this method public? Or is there a better
alternative that I haven't found yet?
somewhere else (I think I've tried all the combinations of layout()
pack(), on various parents, etc.).

// Reflow the section to pick up the changes
if (previewSection.isExpanded()) {
previewSection.setExpanded(true);
}

Thanks,

Jason.
Previous Topic:Layout problem using Eclipse Forms
Next Topic:Plain text differencer using org.eclipse.compare
Goto Forum:
  


Current Time: Wed Nov 05 15:19:07 EST 2025

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

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

Back to the top