opening a diagram from a resource [message #223830] |
Wed, 01 April 2009 10:32 |
Eclipse User |
|
|
|
Originally posted by: bmoros.um.es
Hi all,
is it possible to open a diagram editor only by knowing a resource? I will
try to explain the problem ...
In my ecore metamodel the Artifact class is linked to an EObject (element
atribute). It is a general EObject because it could be a Class, Property,
Use Case, etc., that is, it could be any of the UML elements, or any element
which belongs to another DSL. So far, when an ArtifactEditPart is selected,
I can open de model (tree editor) which the linked element belongs to as it
is explained in
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg11197.html,
but I would like to know if it could be possible to open the diagram
editor. Given an EObject I can know the resource it belongs to, but can I
know the editor used to build the model?
Thanks in advance for your time.
Best regards,
Bego
|
|
|
|
Re: opening a diagram from a resource [message #224146 is a reply to message #223876] |
Thu, 02 April 2009 15:54 |
Eclipse User |
|
|
|
Originally posted by: bmoros.um.es
Hello Alex,
thank you for your answer but I am afraid I still can not figure out how to
do it. At runtime, I only know a generic EObject which is part of a model
(class model, use case model, whatever) and this object could be anything.
In order to open the diagram editor programatically, I guess I should know
the specific diagram used to be able to create it and I don
|
|
|
|
Powered by
FUDForum. Page generated in 0.03287 seconds