Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Resize constraint for nodes with children
Resize constraint for nodes with children [message #419784] Thu, 30 July 2009 11:20 Go to next message
Eclipse UserFriend
Originally posted by: romain.bioteau.gmail.com

Hi everyone,
I have an unexcepted behavior when I try to resize a node owning children.
I'm still able to increase the size of the node but reducing seems
constrained.
Moreover if I remove the children of this node, the resize won't work as
expected until the call of an auto resize on that node.

I was not able to find in the generated code the input to adapt this
behavior to my own needs.

Some help on that is welcomed.
Regards,

Romain
Re: Resize constraint for nodes with children [message #481170 is a reply to message #419784] Wed, 19 August 2009 23:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.harjono.utoronto.ca

Hi Romain,

I had a similar situation and I found a work around:

Find the EditPart of your node, go to its handleNotification method and
if you encounter a resize event, then look at the node's Figure element
and try to accordingly change and update its value through its
setPreferredSize and setMinimumSize methods.

Hope that helps,
Johan

Romain Bioteau wrote:
> Hi everyone,
> I have an unexcepted behavior when I try to resize a node owning children.
> I'm still able to increase the size of the node but reducing seems
> constrained.
> Moreover if I remove the children of this node, the resize won't work as
> expected until the call of an auto resize on that node.
>
> I was not able to find in the generated code the input to adapt this
> behavior to my own needs.
>
> Some help on that is welcomed.
> Regards,
>
> Romain
>
Re: Resize constraint for nodes with children [message #481816 is a reply to message #481170] Mon, 24 August 2009 12:31 Go to previous message
Romain Bioteau is currently offline Romain BioteauFriend
Messages: 65
Registered: August 2009
Location: Grenoble
Member
Thanks Johan,
it helps a lot.

Johan Harjono wrote:

> Hi Romain,

> I had a similar situation and I found a work around:

> Find the EditPart of your node, go to its handleNotification method and
> if you encounter a resize event, then look at the node's Figure element
> and try to accordingly change and update its value through its
> setPreferredSize and setMinimumSize methods.

> Hope that helps,
> Johan

> Romain Bioteau wrote:
>> Hi everyone,
>> I have an unexcepted behavior when I try to resize a node owning children.
>> I'm still able to increase the size of the node but reducing seems
>> constrained.
>> Moreover if I remove the children of this node, the resize won't work as
>> expected until the call of an auto resize on that node.
>>
>> I was not able to find in the generated code the input to adapt this
>> behavior to my own needs.
>>
>> Some help on that is welcomed.
>> Regards,
>>
>> Romain
>>


R&D Engineer at BonitaSoft
Previous Topic:Position of the elements
Next Topic:unrecognized variable
Goto Forum:
  


Current Time: Sat Apr 20 03:59:07 GMT 2024

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

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

Back to the top