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 #474225] Tue, 15 April 2008 16:56 Go to next message
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
Re: Initializing .uml2 and xmi files exported by uml tools [message #474227 is a reply to message #474225] Tue, 15 April 2008 18:32 Go to previous messageGo to next message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
steve orobec wrote:
> 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
>

following up my own mail..

Just checked Problem 2 and looked through the xmi
This second uml tools xmi export consists of a 2.5 Mb main file with the
other exported xmi's as imports. I suspect that might have something to
do with the problem here. Would I need to manually import these other
files to create a single large file?

regards
Steve
Re: Initializing .uml2 and xmi files exported by uml tools [message #474237 is a reply to message #474227] Wed, 16 April 2008 22:40 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
steve orobec wrote:
> steve orobec wrote:
>> 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
>>
>
> following up my own mail..
>
> Just checked Problem 2 and looked through the xmi
> This second uml tools xmi export consists of a 2.5 Mb main file with the
> other exported xmi's as imports. I suspect that might have something to
> do with the problem here. Would I need to manually import these other
> files to create a single large file?
>
> regards
> Steve

I have done some more investigation on this. I think I have resolved
problem 1, the drill down works - I was double clicking on the wrong
part of the package. It is still a bit slow opening up the package but I
think part of the problem may be there maybe some broken dependencies.
The model was originally a mdl 1.4 model that I have converted to uml 2
and then exported to xmi in a commercial tool. Does this seem plausible?
(there are about 1000 classes in several hierarchical packages including
some relations that were allowed in UML 1.4 but are frowned on in uml 2)

anyone know of an mdl to xmi2.1 converter? ;)

I think I understand why problem 2 occurs

Would be nice to have some confirmation that I'm using the correct
process for problem 3 though.

regards
Steve
Re: Initializing .uml2 and xmi files exported by uml tools [message #619661 is a reply to message #474225] Tue, 15 April 2008 18:32 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
steve orobec wrote:
> 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
>

following up my own mail..

Just checked Problem 2 and looked through the xmi
This second uml tools xmi export consists of a 2.5 Mb main file with the
other exported xmi's as imports. I suspect that might have something to
do with the problem here. Would I need to manually import these other
files to create a single large file?

regards
Steve
Re: Initializing .uml2 and xmi files exported by uml tools [message #619687 is a reply to message #474227] Wed, 16 April 2008 22:40 Go to previous message
Bill HingeFriend
Messages: 156
Registered: July 2009
Senior Member
steve orobec wrote:
> steve orobec wrote:
>> 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
>>
>
> following up my own mail..
>
> Just checked Problem 2 and looked through the xmi
> This second uml tools xmi export consists of a 2.5 Mb main file with the
> other exported xmi's as imports. I suspect that might have something to
> do with the problem here. Would I need to manually import these other
> files to create a single large file?
>
> regards
> Steve

I have done some more investigation on this. I think I have resolved
problem 1, the drill down works - I was double clicking on the wrong
part of the package. It is still a bit slow opening up the package but I
think part of the problem may be there maybe some broken dependencies.
The model was originally a mdl 1.4 model that I have converted to uml 2
and then exported to xmi in a commercial tool. Does this seem plausible?
(there are about 1000 classes in several hierarchical packages including
some relations that were allowed in UML 1.4 but are frowned on in uml 2)

anyone know of an mdl to xmi2.1 converter? ;)

I think I understand why problem 2 occurs

Would be nice to have some confirmation that I'm using the correct
process for problem 3 though.

regards
Steve
Previous Topic:UML Diagram Creation
Next Topic:Changing default visual for uml2 diags to add drop shadows?
Goto Forum:
  


Current Time: Thu Apr 25 09:45:28 GMT 2024

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

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

Back to the top