|
|
Re: Limiting dimensions of view folders / views [message #521281 is a reply to message #521091] |
Wed, 17 March 2010 04:42 |
Andrei Lissovski Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Thanks Paul, your ISizeProvider suggestion got me on the right track.
For posterity, your custom presentation must be overriding getSizeFlags() and computePreferredSize() off the org.eclipse.ui.ISizeProvider. The contract is somewhat dense but the key is that (for example, in the case of constraining min/max width) the max dimension must be returned for the computePreferredSize(true, INFINITE, someWidth, INFINITE) invocation, and the min dimension must be returned for the computePreferredSize(true, INFINITE, someWidth, 0) invocation. The getSizeFlags(true) must return SWT.MIN | SWT.MAX.
|
|
|
Powered by
FUDForum. Page generated in 0.03225 seconds