| Section.reflow() should be public? (forms) [message #283609] |
Thu, 07 April 2005 00:54 |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02553 seconds