Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF and GEF(Drag and Drop in GEF using EMF Models)
EMF and GEF [message #708810] Wed, 03 August 2011 07:38 Go to next message
Guru  is currently offline Guru Friend
Messages: 9
Registered: July 2011
Location: India
Junior Member
Hello ,

I am developing BPMN2 Editor using BPMN2 EMF Models. Now i can able to drag the StartEvent and place into Process.The problem is all the start events are palced in the same place. In getCreateCommand() method i set the bounds using org.eclipse.dd.dc.Bounds but in the refreshVisual() of StartEvents editpart i cant get Bounds from getModel() object. In my Model there is no method associate with setting and getting Bounds. any suggestions or sample code to achieve this.

Thanks.
Re: EMF and GEF [message #708849 is a reply to message #708810] Wed, 03 August 2011 08:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Sorry, I don't understand your question. All the GEF context doesn't
help me figure out what specifically you're asking about EMF...


On 03/08/2011 9:38 AM, Guru wrote:
> Hello ,
>
> I am developing BPMN2 Editor using BPMN2 EMF Models. Now i can
> able to drag the StartEvent and place into Process.The problem is all
> the start events are palced in the same place. In getCreateCommand()
> method i set the bounds using org.eclipse.dd.dc.Bounds but in the
> refreshVisual() of StartEvents editpart i cant get Bounds from
> getModel() object. In my Model there is no method associate with
> setting and getting Bounds. any suggestions or sample code to achieve
> this.
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF and GEF [message #708874 is a reply to message #708849] Wed, 03 August 2011 08:47 Go to previous messageGo to next message
Guru  is currently offline Guru Friend
Messages: 9
Registered: July 2011
Location: India
Junior Member
Hello Ed Merks,

Sorry ! When i drag a StartEvent from palette and drop it to BPMN Editor StartEvent placed in particular location only. Not in the cursor's current position. This problem arises due to i cant able to retrieve bounds from model object in refreshVisuals(). any suggestions.

Thanks.
Re: EMF and GEF [message #708889 is a reply to message #708874] Wed, 03 August 2011 08:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This doesn't sound like an EMF question but rather a GEF question so
better to ask it on the GEF newsgroup/forum.

On 03/08/2011 10:47 AM, Guru wrote:
> Hello Ed Merks,
>
> Sorry ! When i drag a StartEvent from palette and drop it to BPMN
> Editor StartEvent placed in particular location only. Not in the
> cursor's current position. This problem arises due to i cant able to
> retrieve bounds from model object in refreshVisuals(). any suggestions.
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Net4J Mysql adapter in Indigo
Next Topic:Convert emf model in xml
Goto Forum:
  


Current Time: Fri Apr 26 20:51:48 GMT 2024

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

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

Back to the top