Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Set ecore flags automatically
Set ecore flags automatically [message #429769] Thu, 30 April 2009 22:28 Go to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
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 23:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Set ecore flags automatically [message #429776 is a reply to message #429771] Fri, 01 May 2009 01:09 Go to previous messageGo to next message
Süleyman Vurucu is currently offline Süleyman VurucuFriend
Messages: 34
Registered: July 2009
Member
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 09:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
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:
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:XML Resource resolving problems
Next Topic:[ResourceAttributes] Changing the read-only state of a file
Goto Forum:
  


Current Time: Tue Sep 24 13:00:27 GMT 2024

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

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

Back to the top