Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Default location for figures on creation
Default location for figures on creation [message #180806] Thu, 03 April 2008 15:52 Go to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Hello,

I would like to create some figures on my diagram (by code), so I set the
"location" into the .gmfgraph (please, see the attachment). Nevertheless,
when the objects get created, they don't position into the specified
locations, but into the upper-left corner of the diagram.

Is it something wrong that I do, or what? Please help! Thanks,


Floppy


Re: Default location for figures on creation [message #180864 is a reply to message #180806] Fri, 04 April 2008 08:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nico.lammers.gmail.com

Florin,

I'm pretty sure that location property is the location of the figure on
the content pane.

If you want to programmatically set the location of an editpart you need
to set the location in the create request (assuming you're doing this
with code)

~ Nico

Florin Banica wrote:
> Hello,
>
> I would like to create some figures on my diagram (by code), so I set the
> "location" into the .gmfgraph (please, see the attachment). Nevertheless,
> when the objects get created, they don't position into the specified
> locations, but into the upper-left corner of the diagram.
>
> Is it something wrong that I do, or what? Please help! Thanks,
>
>
> Floppy
>
>
>
Re: Default location for figures on creation [message #181027 is a reply to message #180806] Fri, 04 April 2008 19:40 Go to previous message
Eclipse UserFriend
Originally posted by: gxquarel.txin.it

Maybe is something related to

https://bugs.eclipse.org/bugs/show_bug.cgi?id=223107

Ciao

Giovanni

"Florin Banica" <fbanica@soluta.net> ha scritto nel messaggio
news:ft2uh7$3sg$1@build.eclipse.org...
> Hello,
>
> I would like to create some figures on my diagram (by code), so I set the
> "location" into the .gmfgraph (please, see the attachment). Nevertheless,
> when the objects get created, they don't position into the specified
> locations, but into the upper-left corner of the diagram.
>
> Is it something wrong that I do, or what? Please help! Thanks,
>
>
> Floppy
>
>
Previous Topic:[Announce] ... missing
Next Topic:To obtain the instance of editor.
Goto Forum:
  


Current Time: Fri Apr 26 03:12:53 GMT 2024

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

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

Back to the top