|
|
|
Re: how to access emfmodel in xmi [message #908040 is a reply to message #908028] |
Tue, 04 September 2012 15:30 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Comments below.
On 04/09/2012 5:07 PM, noi poi wrote:
> Hey Ed,
>
> This is confusing. I mean what's the point of developing a texual
> editor when you have to enter model instances manually........
Whether the resource contains text, XML, or whatever, the same
mechanisms are used.
>
> The TextBe is a texual editor which uses model transformation at its
> core to display the graphical counterpart of the lanugage.
I know nothing about that, so I can't answer questions about it.
>
> ITs is an Eclipse plugin which utilises several Eclipse plugins: the
> Eclipse Modeling Framework (EMF), EMFText, EclipseGraphviz, the ATLAS
> Transformation Language (ATL), Java Emitter Templates (JET) and SVG
> Eclipse.
Some of those I know, and some I don't.
>
> The textual representation is parsed by an editor generated from a
> textual specification provided to EMFText. EMFText populates a model
> that conforms to the metamodel of the appropriate view.
Likely using EMF's resource framework.
> An ATL transformation then maps the view into a graphviz model and a
> JET template is used to generate the associated code.
I see.
>
> Now i need to access that model which is populated by the EMFText and
> write a transformation in ATL that maps it to my target metamodel. I
> know the source metamodel
> I know the target metamodel
> What i dont know is what path to give in the ATL configuration
That's an ATL question, not an EMF one.
> for the source populated model instance. And since ATL only takes in
> source instance model in xmi format, i am interested in it.
I don't think that's true. I think it will use EMF to load a resource
for the specified URI and you can register a resource factory for
dealing with URIs of that form, e.g., register a factory based on
extension, and then the resource will be loaded by the right
implementation that can read the appropriate format.
> since i am new to the eclipse community i hope you would answer my
> trivial questions.
Yes, but I would hope that you read some basic reference material that I
suggest and not come back and explain how pointless it is. You'll need
to learn about resource set, resource, and so on. There's a nice book
you can buy. But if you come and say "I no nothing, please explain
everything to me" that's just not going to work well.
>
>
> Thanks,
> Naurin
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03454 seconds