Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to create a Template Class with Papyrus
How to create a Template Class with Papyrus [message #1008659] Wed, 13 February 2013 08:20
Jonathan Fernandez is currently offline Jonathan Fernandez
Messages: 4
Registered: February 2013
Junior Member
Hi,

I am currently using Papyrus 0.9.1 with Juno to edit UML models for an application.
I would like to create a Template Class, which would contain an attribute of an unknown Type.

Something close to the example on this web page :
www.uml-diagrams.org/template.html
(An Array Class, of a gerenic Type of element).

I have found on the (outdated) PapyrusUML web site, a tutorial to do Templates, but it seems it's not quite what I want to do. Since it explains how to create Generic Packages with templates, whereas I just want to parameterize a class with a generic type :
www.papyrusuml.org/scripts/home/publigen/content/templates/show.asp?P=144&L=EN


So far, I have created a class, and applied a "Redefinable Template Signature" to it
(it seems to be the only template-related thing available on a class).
But there I'm stuck, I don't know how to create an attribute with a template type.

Thank you for your help,

Jonathan.

[Updated on: Thu, 14 February 2013 09:45]

Report message to a moderator

Previous Topic:Showing/hiding "visibility" of parameters in operation
Next Topic:Reverse engineering from java code
Goto Forum:
  


Current Time: Wed Aug 20 16:37:44 EDT 2014

Powered by FUDForum. Page generated in 0.01539 seconds