Set size of sticky view [message #127355] |
Mon, 06 April 2009 14:47 |
Eclipse User |
|
|
|
Originally posted by: bjoern.bjoernfischer.de
Hi everybody,
today I have added the first sticky view to my application. What I did
not manage to accomplish was to set the initial size of the view. Is
there a way to set it somewhere, or is it possible to resize a view
programmatically after it was opened?
I would appreciate any hint that might somehow help in this case.
Thanks in advance,
Björn
|
|
|
|
Re: Set size of sticky view [message #129867 is a reply to message #127602] |
Thu, 23 April 2009 13:36 |
Eclipse User |
|
|
|
Originally posted by: bjoern.bjoernfischer.de
Hi Benny,
thanks for your hint to the ISizeProvider. This solution works - with
only one problem: The size of the sticky view is set fix. So the user
can not resize it with the mouse anymore.
Maybe you have a spontaneous idea how to set the _initial_ size via
ISizeProvider and after that let the user resize the view?
Thanks in advance!
Björn
Benjamin Muskalla schrieb:
> Hi Björn,
>
> The rather silly solution is to compute the right size yourself by
> looking at the workbench window size and adjusting the ratio in your
> page layout.
> Or your view could implement ISizeProvider. But be sure: that is only a
> hint and can be ignored by the workbench.
>
> http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/api/org/eclipse/ui/ISizeProvider. html
>
>
> Cheers
> Benny
>
> Björn Fischer wrote:
>> Hi everybody,
>> today I have added the first sticky view to my application. What I did
>> not manage to accomplish was to set the initial size of the view. Is
>> there a way to set it somewhere, or is it possible to resize a view
>> programmatically after it was opened?
>>
>> I would appreciate any hint that might somehow help in this case.
>>
>> Thanks in advance,
>> Björn
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02730 seconds