Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML Model and fragments
UML Model and fragments [message #654935] Thu, 17 February 2011 16:42
luigiza76 is currently offline luigiza76Friend
Messages: 1
Registered: February 2011
Junior Member
I have to implement a plugin that selected a package inside a UML model creates its fragment (<name package>. uml).

public void save(org.eclipse.uml2.uml.Package pck, URI uri) throws IOException {
		Resource resource = _resourceSet.createResource(uri);

So we have the UML model and its fragments: MainModel.uml, package1.uml .... packageN.uml
Within MainModel.uml there are the references to other *.uml. For example:
  <packagedElement xmi:type="uml:Package" href="package1.uml#_2FI4IDmsEeC4o_pnPrzWXg"/>

This plugin has been implemented with success.

I have to implement also a plugin which achieves the opposite operation: selected a package package1.uml this is inserted within the MainModel.uml
  <packagedElement xmi:type="uml:Package" xmi:id="_8X8IYDmrEeC4o_pnPrzWXg" name="package1">

How can I realize this?

Thanks for the help...
Previous Topic:UML2 Instance Diagram
Next Topic:ddl generation
Goto Forum:

Current Time: Sun May 27 05:03:56 GMT 2018

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

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

Back to the top