Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Initializing .uml2 and xmi files exported by uml tools
Initializing .uml2 and xmi files exported by uml tools [message #619660] Tue, 15 April 2008 16:56
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
Hi

My first posting here

I have been working on creating my own eclipse product which contains a
GMF editor which is based on a non-UML like DSL. Ultimately I would like
to have some diagram on diagram capability perhaps with a UML class
diagram embedded in a particular GMF node - but that's for the future ;)

At the moment I'm initialising a .uml2 file and using the uml2tools to
render it into a diagram. This seems to work fine with small test
models. I then intend to run a qvt transform on the import to transfer
the relevant data into my DSL editor which will ultimately use a model
to text transform to generate runtime code from a mixture of data
manually entered into the gmf editor and the imported uml.

I tried exporting a large UML 2 model with multiple levels of packages
from one commercial tool and it appears to create a diagram for all the
top level packages and showing the contained packages. It seems to take
about 2-3 mins to initialise a 5Mb .uml2 file. (xmi 2.1). There was a
problem which I seemed to have fixed - warning about accelerator binding
conflicts then the application ran out of heap space.

Problem 1: On import, there doesn't appear to be any shortcuts so that I
can drill down to each top level package. Double click doesn't work.

I had previously tried an export from another commercial product of the
same data model, this was sent to me by a colleague also claiming to be
an xmi 2.1 file but it also consisted of several .xmi files containing
class, composite structure and profiles etc.
When I try to load these or the equivalent 5Mb file my application gets
as far as the wizard on some (showing the contents), refuses others or
just hangs. I have managed to load one of the files but it had visual
artefacts.

The namespaces in the xmi and .uml2 files look similar.

Problem 2: is it possible there are multiple flavours of xmi 2.1?

Thirdly, I hooked in the uml2tools programatically by calling the
UMLNewDiagramFileWizard in ..diagrams.clazz.part

Problem 3: Is this the best way to launch the wizard against a selected
File or URI (I don't necessarily know the contents of the .uml2 file,
someone may open ie what if it contains a state diagram?)

By the way, 'open file/uri' on all the files seems to generate the
normal tree editor so they don't appear to be corrupt.

regards
Steve
Previous Topic:Adapting uml2tools uml gmf editor with heavyweight extension of Eclipse UML2
Next Topic:UML Diagram Creation
Goto Forum:
  


Current Time: Thu Apr 25 08:40:26 GMT 2024

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

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

Back to the top