Problems creating elements [message #159097] |
Thu, 08 November 2007 15:48  |
Eclipse User |
|
|
|
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 #159119 is a reply to message #159106] |
Thu, 08 November 2007 18:00  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03684 seconds