Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » problem with generated uml-editor
problem with generated uml-editor [message #472732] Mon, 23 April 2007 18:08 Go to next message
Steffen Mazanek is currently offline Steffen MazanekFriend
Messages: 40
Registered: July 2009
Member
Hello,

I have done the following steps:

- downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
- File -> Import -> Plugins and Fragments
org.eclipse.uml2.uml

Now clicking at model/UML.genmodel yields a FeatureNotFoundException
(Features creationSubmenus and complianceLevel not found). I tried
removing the .genmodel and generating a new one. However, after
generating All code from this I got a lot of "...cannot be resolved to a
type"-errors within the generated editor. Is this a classpath issue?

How can I fix at least one of these problems? I just want to generate a
standard uml tree-editor out of the specification.

Any hints are greatly appreciated.

Best regards,
Steffen
Re: problem with generated uml-editor [message #472742 is a reply to message #472732] Mon, 23 April 2007 22:27 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Steffen,

Let me try to understand what you are doing ... your goal is to have a look
at the UML metamodel in the UML editor?
Just double click on the UML.merged.uml.
If you want to regenerate the UML API then you can open the UML.genmodel but
it doesn't sound like that's what you want to do.

Regards,
- James



"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0isnr$gr2$1@build.eclipse.org...
> Hello,
>
> I have done the following steps:
>
> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
> - File -> Import -> Plugins and Fragments
> org.eclipse.uml2.uml
>
> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
> (Features creationSubmenus and complianceLevel not found). I tried
> removing the .genmodel and generating a new one. However, after
> generating All code from this I got a lot of "...cannot be resolved to a
> type"-errors within the generated editor. Is this a classpath issue?
>
> How can I fix at least one of these problems? I just want to generate a
> standard uml tree-editor out of the specification.
>
> Any hints are greatly appreciated.
>
> Best regards,
> Steffen
Re: problem with generated uml-editor [message #472745 is a reply to message #472732] Tue, 24 April 2007 02:02 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

Do you have the right version of EMF installed (UML2 2.0.x requires 2.2.x)?
Are you sure you downloaded UML2 2.0.3 and not a 2.1 build? The features you
refer to were introduced in EMF 2.3 and so should not appear in the
generator model from UML2 2.0.x...

Kenn

"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0isnr$gr2$1@build.eclipse.org...
> Hello,
>
> I have done the following steps:
>
> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
> - File -> Import -> Plugins and Fragments
> org.eclipse.uml2.uml
>
> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
> (Features creationSubmenus and complianceLevel not found). I tried
> removing the .genmodel and generating a new one. However, after generating
> All code from this I got a lot of "...cannot be resolved to a type"-errors
> within the generated editor. Is this a classpath issue?
>
> How can I fix at least one of these problems? I just want to generate a
> standard uml tree-editor out of the specification.
>
> Any hints are greatly appreciated.
>
> Best regards,
> Steffen
Re: problem with generated uml-editor [message #472746 is a reply to message #472742] Tue, 24 April 2007 06:23 Go to previous messageGo to next message
Steffen Mazanek is currently offline Steffen MazanekFriend
Messages: 40
Registered: July 2009
Member
Hello James, Kenn and others,

at my department a diagram editor generator was developed called
DiaMeta. The diagrams were originally represented by hypergraphs,
however, it is pretty difficult to write a hypergraph grammar to
specify a particular diagram language.
So support for EMF was added, i.e. an EMF model can be imported
so that the classes are added automatically as diagram components
and even the concrete syntax is modeled via EMF. For example, you
can have Nodes and Links in the abstract syntax and connect them
with Circles (x,y,radius) and Arrows in the concrete syntax.
Now we want to test the framework with a pretty complex diagram
language, UML. So I plan to import the uml.ecore enriched by
visual components relating to e.g. classes, associations, ...
Hopefully it won't be necessary to enrich the whole uml metamodel
with visual components to get a start *g*

My problem is now, that I have to know, which eclasses are used
for which purpose. So it would be very helpful to see the
abstract syntax of a concrete little uml diagram. That is, what
I want to produce.

> Let me try to understand what you are doing ... your goal is to have a look
> at the UML metamodel in the UML editor?
> Just double click on the UML.merged.uml.

I have found this file, however I do not understand how I could use
it to get what I want. What is this all about? Can you please point
me to the right places to look for further information? I guess some
important pieces of the puzzle I still don't understand.

Best regards,
Steffen
Re: problem with generated uml-editor [message #472748 is a reply to message #472745] Tue, 24 April 2007 07:00 Go to previous messageGo to next message
Steffen Mazanek is currently offline Steffen MazanekFriend
Messages: 40
Registered: July 2009
Member
Kenn,

I tried it again and you are right. I had installed the
wrong version of uml2. The feature problem is now resolved.

Thank you!

Steffen

>
> Do you have the right version of EMF installed (UML2 2.0.x requires 2.2.x)?
> Are you sure you downloaded UML2 2.0.3 and not a 2.1 build? The features you
> refer to were introduced in EMF 2.3 and so should not appear in the
> generator model from UML2 2.0.x...
>
> Kenn
>
> "Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
> news:f0isnr$gr2$1@build.eclipse.org...
>> Hello,
>>
>> I have done the following steps:
>>
>> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
>> - File -> Import -> Plugins and Fragments
>> org.eclipse.uml2.uml
>>
>> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
>> (Features creationSubmenus and complianceLevel not found). I tried
>> removing the .genmodel and generating a new one. However, after generating
>> All code from this I got a lot of "...cannot be resolved to a type"-errors
>> within the generated editor. Is this a classpath issue?
>>
>> How can I fix at least one of these problems? I just want to generate a
>> standard uml tree-editor out of the specification.
>>
>> Any hints are greatly appreciated.
>>
>> Best regards,
>> Steffen
>
>
Re: problem with generated uml-editor [message #472846 is a reply to message #472746] Tue, 01 May 2007 19:17 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Steffen,

Sorry for the delayed response ...

Some comments below ...

- James.


"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0k7p4$o8n$1@build.eclipse.org...
> Hello James, Kenn and others,
>
> at my department a diagram editor generator was developed called
> DiaMeta. The diagrams were originally represented by hypergraphs,
> however, it is pretty difficult to write a hypergraph grammar to
> specify a particular diagram language.
> So support for EMF was added, i.e. an EMF model can be imported
> so that the classes are added automatically as diagram components
> and even the concrete syntax is modeled via EMF. For example, you
> can have Nodes and Links in the abstract syntax and connect them
> with Circles (x,y,radius) and Arrows in the concrete syntax.
> Now we want to test the framework with a pretty complex diagram
> language, UML. So I plan to import the uml.ecore enriched by
> visual components relating to e.g. classes, associations, ...
> Hopefully it won't be necessary to enrich the whole uml metamodel
> with visual components to get a start *g*
>
> My problem is now, that I have to know, which eclasses are used
> for which purpose. So it would be very helpful to see the
> abstract syntax of a concrete little uml diagram. That is, what
> I want to produce.

You can create a little uml model using the default uml editor. Open up
the resulting .uml file as text and have a peek.
UML.ecore is the ecore representation of the UML metamodel.

>
> > Let me try to understand what you are doing ... your goal is to have a
look
> > at the UML metamodel in the UML editor?
> > Just double click on the UML.merged.uml.
>
> I have found this file, however I do not understand how I could use
> it to get what I want. What is this all about?

UML.merged.uml is the complete uml metamodel.


>Can you please point
> me to the right places to look for further information?

If you want to add diagramming capablities you might want to look at the
UMLTools project.

>I guess some
> important pieces of the puzzle I still don't understand.
>
> Best regards,
> Steffen
Re: problem with generated uml-editor [message #611037 is a reply to message #472732] Mon, 23 April 2007 22:27 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Steffen,

Let me try to understand what you are doing ... your goal is to have a look
at the UML metamodel in the UML editor?
Just double click on the UML.merged.uml.
If you want to regenerate the UML API then you can open the UML.genmodel but
it doesn't sound like that's what you want to do.

Regards,
- James



"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0isnr$gr2$1@build.eclipse.org...
> Hello,
>
> I have done the following steps:
>
> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
> - File -> Import -> Plugins and Fragments
> org.eclipse.uml2.uml
>
> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
> (Features creationSubmenus and complianceLevel not found). I tried
> removing the .genmodel and generating a new one. However, after
> generating All code from this I got a lot of "...cannot be resolved to a
> type"-errors within the generated editor. Is this a classpath issue?
>
> How can I fix at least one of these problems? I just want to generate a
> standard uml tree-editor out of the specification.
>
> Any hints are greatly appreciated.
>
> Best regards,
> Steffen
Re: problem with generated uml-editor [message #611040 is a reply to message #472732] Tue, 24 April 2007 02:02 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Steffen,

Do you have the right version of EMF installed (UML2 2.0.x requires 2.2.x)?
Are you sure you downloaded UML2 2.0.3 and not a 2.1 build? The features you
refer to were introduced in EMF 2.3 and so should not appear in the
generator model from UML2 2.0.x...

Kenn

"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0isnr$gr2$1@build.eclipse.org...
> Hello,
>
> I have done the following steps:
>
> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
> - File -> Import -> Plugins and Fragments
> org.eclipse.uml2.uml
>
> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
> (Features creationSubmenus and complianceLevel not found). I tried
> removing the .genmodel and generating a new one. However, after generating
> All code from this I got a lot of "...cannot be resolved to a type"-errors
> within the generated editor. Is this a classpath issue?
>
> How can I fix at least one of these problems? I just want to generate a
> standard uml tree-editor out of the specification.
>
> Any hints are greatly appreciated.
>
> Best regards,
> Steffen
Re: problem with generated uml-editor [message #611041 is a reply to message #472742] Tue, 24 April 2007 06:23 Go to previous message
Steffen Mazanek is currently offline Steffen MazanekFriend
Messages: 40
Registered: July 2009
Member
Hello James, Kenn and others,

at my department a diagram editor generator was developed called
DiaMeta. The diagrams were originally represented by hypergraphs,
however, it is pretty difficult to write a hypergraph grammar to
specify a particular diagram language.
So support for EMF was added, i.e. an EMF model can be imported
so that the classes are added automatically as diagram components
and even the concrete syntax is modeled via EMF. For example, you
can have Nodes and Links in the abstract syntax and connect them
with Circles (x,y,radius) and Arrows in the concrete syntax.
Now we want to test the framework with a pretty complex diagram
language, UML. So I plan to import the uml.ecore enriched by
visual components relating to e.g. classes, associations, ...
Hopefully it won't be necessary to enrich the whole uml metamodel
with visual components to get a start *g*

My problem is now, that I have to know, which eclasses are used
for which purpose. So it would be very helpful to see the
abstract syntax of a concrete little uml diagram. That is, what
I want to produce.

> Let me try to understand what you are doing ... your goal is to have a look
> at the UML metamodel in the UML editor?
> Just double click on the UML.merged.uml.

I have found this file, however I do not understand how I could use
it to get what I want. What is this all about? Can you please point
me to the right places to look for further information? I guess some
important pieces of the puzzle I still don't understand.

Best regards,
Steffen
Re: problem with generated uml-editor [message #611043 is a reply to message #472745] Tue, 24 April 2007 07:00 Go to previous message
Steffen Mazanek is currently offline Steffen MazanekFriend
Messages: 40
Registered: July 2009
Member
Kenn,

I tried it again and you are right. I had installed the
wrong version of uml2. The feature problem is now resolved.

Thank you!

Steffen

>
> Do you have the right version of EMF installed (UML2 2.0.x requires 2.2.x)?
> Are you sure you downloaded UML2 2.0.3 and not a 2.1 build? The features you
> refer to were introduced in EMF 2.3 and so should not appear in the
> generator model from UML2 2.0.x...
>
> Kenn
>
> "Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
> news:f0isnr$gr2$1@build.eclipse.org...
>> Hello,
>>
>> I have done the following steps:
>>
>> - downloaded and extracted uml2-sdk-2.0.3.zip in eclipse dir
>> - File -> Import -> Plugins and Fragments
>> org.eclipse.uml2.uml
>>
>> Now clicking at model/UML.genmodel yields a FeatureNotFoundException
>> (Features creationSubmenus and complianceLevel not found). I tried
>> removing the .genmodel and generating a new one. However, after generating
>> All code from this I got a lot of "...cannot be resolved to a type"-errors
>> within the generated editor. Is this a classpath issue?
>>
>> How can I fix at least one of these problems? I just want to generate a
>> standard uml tree-editor out of the specification.
>>
>> Any hints are greatly appreciated.
>>
>> Best regards,
>> Steffen
>
>
Re: problem with generated uml-editor [message #614267 is a reply to message #472746] Tue, 01 May 2007 19:17 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Steffen,

Sorry for the delayed response ...

Some comments below ...

- James.


"Steffen Mazanek" <modeling@steffen-mazanek.de> wrote in message
news:f0k7p4$o8n$1@build.eclipse.org...
> Hello James, Kenn and others,
>
> at my department a diagram editor generator was developed called
> DiaMeta. The diagrams were originally represented by hypergraphs,
> however, it is pretty difficult to write a hypergraph grammar to
> specify a particular diagram language.
> So support for EMF was added, i.e. an EMF model can be imported
> so that the classes are added automatically as diagram components
> and even the concrete syntax is modeled via EMF. For example, you
> can have Nodes and Links in the abstract syntax and connect them
> with Circles (x,y,radius) and Arrows in the concrete syntax.
> Now we want to test the framework with a pretty complex diagram
> language, UML. So I plan to import the uml.ecore enriched by
> visual components relating to e.g. classes, associations, ...
> Hopefully it won't be necessary to enrich the whole uml metamodel
> with visual components to get a start *g*
>
> My problem is now, that I have to know, which eclasses are used
> for which purpose. So it would be very helpful to see the
> abstract syntax of a concrete little uml diagram. That is, what
> I want to produce.

You can create a little uml model using the default uml editor. Open up
the resulting .uml file as text and have a peek.
UML.ecore is the ecore representation of the UML metamodel.

>
> > Let me try to understand what you are doing ... your goal is to have a
look
> > at the UML metamodel in the UML editor?
> > Just double click on the UML.merged.uml.
>
> I have found this file, however I do not understand how I could use
> it to get what I want. What is this all about?

UML.merged.uml is the complete uml metamodel.


>Can you please point
> me to the right places to look for further information?

If you want to add diagramming capablities you might want to look at the
UMLTools project.

>I guess some
> important pieces of the puzzle I still don't understand.
>
> Best regards,
> Steffen
Previous Topic:Sequence Diagrams
Next Topic:Changes in the Properties view
Goto Forum:
  


Current Time: Wed Apr 24 15:36:23 GMT 2024

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

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

Back to the top