Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSet size of sticky view
https://www.eclipse.org/forums/index.php/mv/msg/39174/127355/#msg_127355
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]]>2009-04-06T14:47:05-00:00Re: Set size of sticky view
https://www.eclipse.org/forums/index.php/mv/msg/39174/127602/#msg_127602
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.
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
--
Benjamin Muskalla | EclipseSource Karlsruhe http://www.eclipsesource.com | http://twitter.com/eclipsesource]]>Benjamin Muskalla2009-04-08T07:55:15-00:00Re: Set size of sticky view
https://www.eclipse.org/forums/index.php/mv/msg/39174/129867/#msg_129867
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
>
>]]>2009-04-23T13:36:45-00:00