Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Programmatically moving Packages within an UML model
Programmatically moving Packages within an UML model [message #419329] Mon, 19 May 2008 11:51 Go to next message
Eclipse UserFriend
Originally posted by: joakim.back.jayway.se

Hello,

I am working with a transformation aiming at adapting RSM models, to be
compatible with tools previously used with Rose models.

In the ModelRule, there is a desire to programatically move packages and
content into a central Component. This has been possible with various
content by creating clone packages, and moving content into the clones.

An issue has arisen though with a Package that contains an Association
to a Class in a sibling Package. The grand parent can be moved without
issue to his clone, but when trying to move the content (say Packages A
and B, where the Association is within A to a class in B) a
ConcurrentModificationException arises.

When moving the content through refactoring in Eclipse, there is no issue.

Does anyone have clues to how to circumvent the problem, or since I am
new to both the code and EMF in general, a different approach altogether?


Best regards,

Joakim
Re: Programmatically moving Packages within an UML model [message #419336 is a reply to message #419329] Mon, 19 May 2008 13:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Joakim,

It sounds like a question best asked on the UML2 newsgroup, which I've
added to the "to" list of the reply. Likely showing your stack trace
will be helpful for folks trying to understand what you've done.


Joakim Back wrote:
> Hello,
>
> I am working with a transformation aiming at adapting RSM models, to
> be compatible with tools previously used with Rose models.
>
> In the ModelRule, there is a desire to programatically move packages
> and content into a central Component. This has been possible with
> various content by creating clone packages, and moving content into
> the clones.
>
> An issue has arisen though with a Package that contains an Association
> to a Class in a sibling Package. The grand parent can be moved without
> issue to his clone, but when trying to move the content (say Packages
> A and B, where the Association is within A to a class in B) a
> ConcurrentModificationException arises.
>
> When moving the content through refactoring in Eclipse, there is no
> issue.
>
> Does anyone have clues to how to circumvent the problem, or since I am
> new to both the code and EMF in general, a different approach altogether?
>
>
> Best regards,
>
> Joakim


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Deserializing EMap<String, Object>
Next Topic:[newbie] EMF and UI
Goto Forum:
  


Current Time: Thu Mar 28 20:52:23 GMT 2024

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

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

Back to the top