UML Component creation [message #876326] |
Thu, 24 May 2012 07:36  |
Eclipse User |
|
|
|
Hi,
I want to create a UML component programmatically.
For interfaces, classes etc. I use this:
public static org.eclipse.uml2.uml.Class addClass(org.eclipse.uml2.uml.Package p, String name) {
return p.createOwnedClass(name, false);
}
But there is no method createOwnedComponent. I have created a model using UML2 tools and here a component is a packagedElement similar to a class. But how should I create a component?
Or is the way I use to create classes not correct too?
Regards,
Tex
|
|
|
Re: UML Component creation [message #876877 is a reply to message #876326] |
Fri, 25 May 2012 08:38  |
Eclipse User |
|
|
|
Hi
I think you'll find that there are only so many helper routines that the
developers had time for.
You need to replicate the innards of one of the helpers that are available.
Regards
Ed Willink
On 24/05/2012 12:36, Tex Iano wrote:
> Hi,
>
> I want to create a UML component programmatically.
>
> For interfaces, classes etc. I use this:
>
>
> public static org.eclipse.uml2.uml.Class
> addClass(org.eclipse.uml2.uml.Package p, String name) {
> return p.createOwnedClass(name, false);
> }
>
>
> But there is no method createOwnedComponent. I have created a model
> using UML2 tools and here a component is a packagedElement similar to
> a class. But how should I create a component?
>
> Or is the way I use to create classes not correct too?
>
> Regards,
>
> Tex
>
|
|
|
Powered by
FUDForum. Page generated in 0.03335 seconds