Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » how to set minimum size for windows or parts
how to set minimum size for windows or parts [message #734227] Fri, 07 October 2011 07:30 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 18
Registered: September 2011
Junior Member
I know I can use Shell.setMinimumSize for this, though I haven't yet found the right place to put the call.
Is there some way to set this using the e4xmi?

And is there some mechanism for setting minimum sizes on a part or partstack? I've looked everywhere I can think of and the only thing I came up with was the possibility of creating my own layout class. That seems wrong in so many ways, there must be a better solution.
Re: how to set minimum size for windows or parts [message #734250 is a reply to message #734227] Fri, 07 October 2011 08:34 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
Am 07.10.11 09:30, schrieb grillo321:
> I know I can use Shell.setMinimumSize for this, though I haven't yet
> found the right place to put the call.
> Is there some way to set this using the e4xmi?

no because the model is not designed on a higher level than SWT. We
could think about adding a Map which allows the user to spec define
generic values which are applied following the Bean-Pattern.

Can you file a bugzilla and add me to it.

>
> And is there some mechanism for setting minimum sizes on a part or
> partstack? I've looked everywhere I can think of and the only thing I

No but I think this might be a regression to 3.x because there it is
possible.

I think the container-data has to allow:
* minimum weight
* maximum weight
* default weight

* minimum size in pixels
* maximum size in pixels
* default size in pixels

I'm not sure anymore why we defined containerData as a String and not a
Map<String,String> which would make it easier for us to support the
above list of properties

> came up with was the possibility of creating my own layout class. That
> seems wrong in so many ways, there must be a better solution.
>

Seems to be wrong but currently the one way you can make that work is to
write your own renderer. I don't expect it to be hard to implement those
requirements in the SashLayout and contribute them back.

Tom
Previous Topic:Closeable parts
Next Topic:How to contribute to an E3 perspective with E4 Part.
Goto Forum:
  


Current Time: Sun Dec 21 04:15:45 GMT 2014

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

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