Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Modelling Java Generics(Is it possible?)
Modelling Java Generics [message #513137] Tue, 09 February 2010 02:39 Go to next message
Mark Mandel is currently offline Mark MandelFriend
Messages: 20
Registered: August 2009
Junior Member
Hey guys,

I'm trying to work out if there is a way to model Java Generics in UML2 with UML2 tools.

I can't seem to find anything that points me in that direction.

Any help would be appreciated.
Re: Modelling Java Generics [message #513140 is a reply to message #513137] Mon, 08 February 2010 21:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010802020001090405060208
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Mark,

I guess you've not seen this:

http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Defin ing_Generics_with_UML_Templates/article.html


Mark Mandel wrote:
> Hey guys,
>
> I'm trying to work out if there is a way to model Java Generics in
> UML2 with UML2 tools.
>
> I can't seem to find anything that points me in that direction.
>
> Any help would be appreciated.

--------------010802020001090405060208
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mark,<br>
<br>
I guess you've not seen this:<br>
<blockquote><a
href=" http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Defin ing_Generics_with_UML_Templates/article.html"> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Defin ing_Generics_with_UML_Templates/article.html</a><br>
</blockquote>
<br>
Mark Mandel wrote:
<blockquote cite="mid:hkqht3$pfh$1@build.eclipse.org" type="cite">Hey
guys,
<br>
<br>
I'm trying to work out if there is a way to model Java Generics in UML2
with UML2 tools.
<br>
<br>
I can't seem to find anything that points me in that direction.
<br>
<br>
Any help would be appreciated.
<br>
</blockquote>
</body>
</html>

--------------010802020001090405060208--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Modelling Java Generics [message #513144 is a reply to message #513140] Tue, 09 February 2010 03:28 Go to previous messageGo to next message
Mark Mandel is currently offline Mark MandelFriend
Messages: 20
Registered: August 2009
Junior Member
I did see this, but honestly it made little sense to me.

I will look at it again.
Re: Modelling Java Generics [message #513150 is a reply to message #513144] Tue, 09 February 2010 04:45 Go to previous messageGo to next message
Mark Mandel is currently offline Mark MandelFriend
Messages: 20
Registered: August 2009
Junior Member
Thanks for that. I read it properly this time, and started to get it going, which is great.

I'm now trying to convert my ECore into UML.

I downloaded the Examples from http://www.eclipse.org/modeling/mdt/downloads/

Installed, restarted Eclipse... and I cannot find the 'Sample Ecore Editor > Convert to UML Model...' menu item which is described.

Am I going crazy, or has it been moved to somewhere else?
Re: Modelling Java Generics [message #513186 is a reply to message #513150] Tue, 09 February 2010 09:51 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
............................................................ ......................................

[Updated on: Wed, 10 March 2010 14:09]

Report message to a moderator

Re: Modelling Java Generics [message #513216 is a reply to message #513150] Tue, 09 February 2010 07:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mark,

You'd need to create a GenModel for the Ecore model and then use Export
Model... from the context menu of the root object in the Generator.


Mark Mandel wrote:
> Thanks for that. I read it properly this time, and started to get it
> going, which is great.
>
> I'm now trying to convert my ECore into UML.
>
> I downloaded the Examples from
> http://www.eclipse.org/modeling/mdt/downloads/
>
> Installed, restarted Eclipse... and I cannot find the 'Sample Ecore
> Editor > Convert to UML Model...' menu item which is described.
>
> Am I going crazy, or has it been moved to somewhere else?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Modelling Java Generics [message #513315 is a reply to message #513150] Tue, 09 February 2010 18:13 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
............................................................ ............

[Updated on: Wed, 10 March 2010 14:09]

Report message to a moderator

Re: Modelling Java Generics [message #625490 is a reply to message #513144] Tue, 09 February 2010 04:45 Go to previous messageGo to next message
Mark Mandel is currently offline Mark MandelFriend
Messages: 20
Registered: August 2009
Junior Member
Thanks for that. I read it properly this time, and started to get it going, which is great.

I'm now trying to convert my ECore into UML.

I downloaded the Examples from http://www.eclipse.org/modeling/mdt/downloads/

Installed, restarted Eclipse... and I cannot find the 'Sample Ecore Editor > Convert to UML Model...' menu item which is described.

Am I going crazy, or has it been moved to somewhere else?
Re: Modelling Java Generics [message #625491 is a reply to message #625490] Tue, 09 February 2010 09:51 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
You can use EMF or UML directly. For example if you decide to write generics in your java code then you will have your model undated using round trip internal mechanism which has already been developped by one of the tool vendors.
See more at : http://www.forum-omondo.com/documentation_eclipseuml_2008/jd k15/index.html

It is simple to use and graphically very nice. It is not free or open source but don't forget that we all need to make our living from our work because for example integrators get paid by their customers using the tool we develop !!
Re: Modelling Java Generics [message #625492 is a reply to message #625490] Tue, 09 February 2010 11:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Mark,

You'd need to create a GenModel for the Ecore model and then use Export
Model... from the context menu of the root object in the Generator.


Mark Mandel wrote:
> Thanks for that. I read it properly this time, and started to get it
> going, which is great.
>
> I'm now trying to convert my ECore into UML.
>
> I downloaded the Examples from
> http://www.eclipse.org/modeling/mdt/downloads/
>
> Installed, restarted Eclipse... and I cannot find the 'Sample Ecore
> Editor > Convert to UML Model...' menu item which is described.
>
> Am I going crazy, or has it been moved to somewhere else?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Modelling Java Generics [message #625493 is a reply to message #625490] Tue, 09 February 2010 18:13 Go to previous message
Vlad Varnica is currently offline Vlad VarnicaFriend
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
I found this 90s video on the generics with EclipseUML Omondo.
The UML modeling is really very simple even for beginner level users.

- Flash demo : http://www.download-omondo.com/generics.swf
- .exe file for windows : http://www.download-omondo.com/generics.exe
- .hqx file for Mac : http://www.download-omondo.com/generics.hqx
Previous Topic:Modelling Java Generics
Next Topic:[Announce] Eclipse/OMG Symposium 2010
Goto Forum:
  


Current Time: Thu Apr 25 09:09:00 GMT 2024

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

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

Back to the top