Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using existing .uml file in textuell modell?
Using existing .uml file in textuell modell? [message #56624] Thu, 09 July 2009 11:17 Go to next message
Michael Baedorf is currently offline Michael BaedorfFriend
Messages: 3
Registered: July 2009
Junior Member
I have a graphical representation of my business system including all
requried classes. Now I have to define a mapping between gui and
persistence attributes. I'd like to do this in a textuell modell.
Therefor I need the graphical modell as input of my textuell modell.
Is it possible to import the existing uml modell?
Re: Using existing .uml file in textuell modell? [message #56651 is a reply to message #56624] Thu, 09 July 2009 11:53 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Michael,

do you want to migrate your existing graphical model to a textual model
or do you want to refer to elements in your graphical model from your
textual model?

I expect some conrete syntax like:

import 'path/to/uml/file.uml'

keyword Something refers ExistingClass ...

The grammar would look like:

grammar foo.bar with org.eclipse.xtext.common.Terminals

import 'http://ns.uri.of.uml.metamodel' as uml
generate mappingModel 'nsuri'

Model:
'keyword' name=ID 'refers' umlClass=[uml::Class]

This should work out of the box with Xtext if you use the default import
feature. It may be necessary to implement a scope provider to resolve
references properly.

Regards,
Sebastian

Am 09.07.2009 13:17 Uhr, schrieb Michael Baedorf:
> I have a graphical representation of my business system including all
> requried classes. Now I have to define a mapping between gui and
> persistence attributes. I'd like to do this in a textuell modell.
> Therefor I need the graphical modell as input of my textuell modell.
> Is it possible to import the existing uml modell?
>
Re: Using existing .uml file in textuell modell? [message #56920 is a reply to message #56651] Fri, 10 July 2009 07:05 Go to previous messageGo to next message
Michael Baedorf is currently offline Michael BaedorfFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Sebastian,

I don't know what's easier... At the moment I only work with the graphical
modell and I don't know if and howto work on two different modells in
different modell slots. So it could be necessary to migrate the existing
modell, but I don't know...
Do you have any experience with such a situation?

Greetings,


Michael
Re: Using existing .uml file in textuell modell? [message #56972 is a reply to message #56920] Fri, 10 July 2009 08:19 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Michael,

I don't think that I understood your usecase. Please decribe the input
models, their relationship and transformations and what you want to
achieve. Maybe it's easier to attach your workflow-file.

Regards,
Sebastian

Am 10.07.2009 9:05 Uhr, schrieb Michael Baedorf:
> Hi Sebastian,
>
> I don't know what's easier... At the moment I only work with the
> graphical modell and I don't know if and howto work on two different
> modells in different modell slots. So it could be necessary to migrate
> the existing modell, but I don't know...
> Do you have any experience with such a situation?
>
> Greetings,
>
>
> Michael
>
Previous Topic:Recipe framework gone?
Next Topic:[xtext] Serializing parsed DSL Model
Goto Forum:
  


Current Time: Sat Nov 09 03:54:50 GMT 2024

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

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

Back to the top