Access to the Diagram Model [message #16167] |
Tue, 21 April 2009 12:54  |
Eclipse User |
|
|
|
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 13:16  |
Eclipse User |
|
|
|
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 13:16  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03334 seconds