Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Access to the Diagram Model
Access to the Diagram Model [message #16167] Tue, 21 April 2009 16:54 Go to next message
Ken Sayers is currently offline Ken SayersFriend
Messages: 40
Registered: July 2009
Member
Hi,

I have an emf model. I use Eugenia to generate a GMF editor for it. I use
"synchronize=false" so that I can have multiple diagrams for one emf
model. I use EWL to do several house keeping tasks in the model so that I
can avoid having to use the EMF editor for things that don't appear on the
diagram.

The last thing I need the EMF editor for is to drag entities from the
model onto a diagram. This can happen because the model is not
"synchronized" iwith the diagram so that not everything in the model is on
every diagram.

I need to accomplish two things:
1. add an entity from the model to the diagram. This can be done by
dragging and dropping from the emf editor. I'd like to do it from EWL.
That means I need access to the diagram model from EWL. Is that possible?
2. add any connections that link the added entity to other things already
on the graph. Again, I need access to the diagram model.

I assume I can get all this accomplished in code, but I am looking for a
higher level solution. If none is available, pointers to where to start
with the code would be helpful.

Any help is greatly appreciated.

Ken
Re: Access to the Diagram Model [message #16180 is a reply to message #16167] Tue, 21 April 2009 17:16 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ken,

This is not supported out-of-the-box by EWL. I suspect that the best way
to proceed is to try and do this using Java and once you've figured out
which methods you should be calling etc., you can wrap your Java code in
an Epsilon tool (see
http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf for details)
which you can then call from EWL. If you have trouble finding the right
methods, I'm pretty sure that the good people over at the GMF newsgroup
will be happy to help.

It'd be great if you could keep the newsgroup posted with your progress
and findings on this. Ideally, we could generalize once you've figured
out the details and provide this as a built-in feature in subsequent
versions of EWL.

Cheers,
Dimitris

Ken Sayers wrote:
> Hi,
>
> I have an emf model. I use Eugenia to generate a GMF editor for it. I
> use "synchronize=false" so that I can have multiple diagrams for one emf
> model. I use EWL to do several house keeping tasks in the model so that
> I can avoid having to use the EMF editor for things that don't appear on
> the diagram.
>
> The last thing I need the EMF editor for is to drag entities from the
> model onto a diagram. This can happen because the model is not
> "synchronized" iwith the diagram so that not everything in the model is
> on every diagram.
> I need to accomplish two things:
> 1. add an entity from the model to the diagram. This can be done by
> dragging and dropping from the emf editor. I'd like to do it from EWL.
> That means I need access to the diagram model from EWL. Is that possible?
> 2. add any connections that link the added entity to other things
> already on the graph. Again, I need access to the diagram model.
>
> I assume I can get all this accomplished in code, but I am looking for a
> higher level solution. If none is available, pointers to where to start
> with the code would be helpful.
>
> Any help is greatly appreciated.
>
> Ken
>
Re: Access to the Diagram Model [message #566956 is a reply to message #16167] Tue, 21 April 2009 17:16 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ken,

This is not supported out-of-the-box by EWL. I suspect that the best way
to proceed is to try and do this using Java and once you've figured out
which methods you should be calling etc., you can wrap your Java code in
an Epsilon tool (see
http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf for details)
which you can then call from EWL. If you have trouble finding the right
methods, I'm pretty sure that the good people over at the GMF newsgroup
will be happy to help.

It'd be great if you could keep the newsgroup posted with your progress
and findings on this. Ideally, we could generalize once you've figured
out the details and provide this as a built-in feature in subsequent
versions of EWL.

Cheers,
Dimitris

Ken Sayers wrote:
> Hi,
>
> I have an emf model. I use Eugenia to generate a GMF editor for it. I
> use "synchronize=false" so that I can have multiple diagrams for one emf
> model. I use EWL to do several house keeping tasks in the model so that
> I can avoid having to use the EMF editor for things that don't appear on
> the diagram.
>
> The last thing I need the EMF editor for is to drag entities from the
> model onto a diagram. This can happen because the model is not
> "synchronized" iwith the diagram so that not everything in the model is
> on every diagram.
> I need to accomplish two things:
> 1. add an entity from the model to the diagram. This can be done by
> dragging and dropping from the emf editor. I'd like to do it from EWL.
> That means I need access to the diagram model from EWL. Is that possible?
> 2. add any connections that link the added entity to other things
> already on the graph. Again, I need access to the diagram model.
>
> I assume I can get all this accomplished in code, but I am looking for a
> higher level solution. If none is available, pointers to where to start
> with the code would be helpful.
>
> Any help is greatly appreciated.
>
> Ken
>
Previous Topic:Access to the Diagram Model
Next Topic:TemplateFactory.load help
Goto Forum:
  


Current Time: Thu Apr 25 19:14:55 GMT 2024

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

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

Back to the top