Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problems creating elements
Problems creating elements [message #159097] Thu, 08 November 2007 15:48 Go to next message
Eclipse UserFriend
Originally posted by: ijerez2001.msn.com

Hello all,

I have a empty diagram, and I want to import a file (in an invented
language) that I parser, and while I am reading insert the
elements to the diagram.
My problem is that I insert an element, but when I add a new element that is
inserting into the first element, the first element come to smaller.
I try to set bounds, but it don´t work.

I need help please.
Thanks.
Re: Problems creating elements [message #159106 is a reply to message #159097] Thu, 08 November 2007 15:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Just a loose idea, but have you tried to set minimum size (or preferred
size)?

Tomas Zijdemans

Iván Jerez wrote:
> Hello all,
>
> I have a empty diagram, and I want to import a file (in an invented
> language) that I parser, and while I am reading insert the
> elements to the diagram.
> My problem is that I insert an element, but when I add a new element
> that is inserting into the first element, the first element come to
> smaller.
> I try to set bounds, but it don´t work.
>
> I need help please.
> Thanks.
Re: Problems creating elements [message #159119 is a reply to message #159106] Thu, 08 November 2007 18:00 Go to previous message
Eclipse UserFriend
Originally posted by: ijerez2001.msn.com

Thanks, it work but not as I want.
I don´t know why it is creating with bounds 0 (for all values x, y, width
and height).
I has tried with MyElementCommandCreate, with the CreateViewRequest (in this
last, I can put the location and the dimension), but
it always is 0 for all sizes and dimensions values.
I print the getSize value for the editpart created and it happen the same.
could anyone help me?

Thanks

"Tomas Zijdemans" <trommas@yahoo.com> escribió en el mensaje de
noticias:fgvt7q$5o9$1@build.eclipse.org...
> Just a loose idea, but have you tried to set minimum size (or preferred
> size)?
>
> Tomas Zijdemans
>
> Iván Jerez wrote:
>> Hello all,
>>
>> I have a empty diagram, and I want to import a file (in an invented
>> language) that I parser, and while I am reading insert the
>> elements to the diagram.
>> My problem is that I insert an element, but when I add a new element that
>> is inserting into the first element, the first element come to smaller.
>> I try to set bounds, but it don´t work.
>>
>> I need help please.
>> Thanks.
Previous Topic:Prop Sheet row selection handling
Next Topic:Problems with the OutlineView
Goto Forum:
  


Current Time: Sun May 11 06:35:11 EDT 2025

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

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

Back to the top