Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » TableLayout layouts too early
TableLayout layouts too early [message #895805] Mon, 16 July 2012 06:28
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
I suspect that most users of TableLayout applied to an SWT Table that is
used as the main control of an Eclipse view must have experienced the
following problem:

If the view containing the table is presented on initial startup of the
RCP client, the first-time layout of TableLayout often happens *before*
the view has reached its final size. The effect is that the widths of
all table columns look too small relative to the room left.

Since TableLayout is only applied a single time (and I don't want to
have a change of this behaviour), it looks like we need to catch an
appropriate UI event that should be used as a trigger of our code to
apply TableLayout to such a table.

Is anyone aware of such an event - presumably part of the
view/perspective lifecycle - that could be used for such a delayed layout?

Let me emphasize that I consider the actual layout behaviour of
TableLayout as correct and I don't want to have another Layout (unless
this has a better internal trigger for what "first time" is considered).

Thanks & Greetings from Bremen,

Daniel Krügler
Previous Topic:How to remove fast view option in my plugin ?
Next Topic:Tooltip for WorkbenchWindowControlContribution Items
Goto Forum:

Current Time: Sun Apr 14 07:07:19 GMT 2024

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

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

Back to the top