Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Set size of sticky view
Set size of sticky view [message #127355] Mon, 06 April 2009 14:47 Go to next message
Eclipse UserFriend
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 #127602 is a reply to message #127355] Wed, 08 April 2009 07:55 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
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


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Set size of sticky view [message #129867 is a reply to message #127602] Thu, 23 April 2009 13:36 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Tomcat errror while starting framework using security manager
Next Topic:GEF with RAP
Goto Forum:
  


Current Time: Mon Dec 06 12:47:22 GMT 2021

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

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

Back to the top