Skip to main content



      Home
Home » Modeling » EMF » Set ecore flags automatically
Set ecore flags automatically [message #429769] Thu, 30 April 2009 18:28 Go to next message
Eclipse UserFriend
Hello,

I'm looking for a way to set some flag in an ecoremodell automatically.

The background is that I have kompex metamodel and I'll serialize
my datamodel in distrubited xmi files. So everytime when I make make
changes in uml tool and import this in emf as an ecoremodell then I must
set the containent flags manually.

I think thats possible in two ways
1. An ecore Profile ?
2. Read an Ecoremodel and set the flags(im programm memory) then save the
manupulated model back.

But I don't have an idea how I do that
Re: Set ecore flags automatically [message #429771 is a reply to message #429769] Thu, 30 April 2009 19:07 Go to previous messageGo to next message
Eclipse UserFriend
Süleyman,

Comments below.

Süleyman Vurucu wrote:
> Hello,
>
> I'm looking for a way to set some flag in an ecoremodell automatically.
>
> The background is that I have kompex metamodel and I'll serialize
> my datamodel in distrubited xmi files. So everytime when I make make
> changes in uml tool and import this in emf as an ecoremodell then I must
> set the containent flags manually.
>
> I think thats possible in two ways
> 1. An ecore Profile ?
>
Profiles is a UML question. I'm no UML expert and can't answer
questions about how UML profiles might be used...
> 2. Read an Ecoremodel and set the flags(im programm memory) then save the
> manupulated model back.
>
Which flags? ResourceSet.getResource(<uri>, true) pretty much works for
all models the same way...
> But I don't have an idea how I do that
>
How to do what?
Re: Set ecore flags automatically [message #429776 is a reply to message #429771] Thu, 30 April 2009 21:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ed,

I mean the properties of structurcal featuers like assotations or
compositions. I need a way to set the containment properties of the
assosations to true.

I'm usin Enterprise Architekt for modeling.If I make changes in
Enterprise Architekt and import my metamodel to EMF, then I must set all
the containment properties for the assosations to true.

Is there a way to set the falg automacially?

Thanks again.
Am Thu, 30 Apr 2009 19:07:25 -0400 schrieb Ed Merks:
Re: Set ecore flags automatically [message #429792 is a reply to message #429776] Fri, 01 May 2009 05:31 Go to previous message
Eclipse UserFriend
Süleyman,

This sounds like a UML question best asked on the UML newsgroup, which
I've added to the "to" list of this reply. Here's what I suggest.
Change one of them manually, and then use the GenModel's Export
capability to export that back to UML. Then look at that UML model to
see how containment is properly represented in UML.

Süleyman Vurucu wrote:
> Hi Ed,
>
> I mean the properties of structurcal featuers like assotations or
> compositions. I need a way to set the containment properties of the
> assosations to true.
>
> I'm usin Enterprise Architekt for modeling.If I make changes in
> Enterprise Architekt and import my metamodel to EMF, then I must set all
> the containment properties for the assosations to true.
>
> Is there a way to set the falg automacially?
>
> Thanks again.
> Am Thu, 30 Apr 2009 19:07:25 -0400 schrieb Ed Merks:
>
>
>
Previous Topic:XML Resource resolving problems
Next Topic:[ResourceAttributes] Changing the read-only state of a file
Goto Forum:
  


Current Time: Mon Jul 14 05:34:34 EDT 2025

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

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

Back to the top