Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » stereotyping port
stereotyping port [message #624385] Mon, 13 August 2007 13:26
Eclipse User
Originally posted by: nickkirtley.gmail.com

hi,

With uml2 tools I select a port and an interface and I want to stereotype
them.

I have the object, when I debug I see that I have the relevant element
selected. Next I want to look up the relevant stereotypes using (got this
from the class diagram example, I'm doing it in the component diagram):

EList<Stereotype> stereotypes = element.getApplicableStereotypes();

My element is an instance of port and I want to retrieve any relevant
stereotypes that exist. By relevant stereotypes I mean stereotypes that
extend UML:port in my uml definition.

However when I do this I get an empty list.

One other thing. When I have retrieved a relevant sterotype and want to
apply it. I can do this with applyStereotype?

thx in advance for any help,

regards,
Nick
Previous Topic:[Announce] new articles available
Next Topic:navigable owned end property vs. owned end property
Goto Forum:
  


Current Time: Thu Oct 02 16:49:35 GMT 2014

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

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