Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Unable to retrieve stereotypes applied to Interface
Unable to retrieve stereotypes applied to Interface [message #628477] Sat, 29 May 2010 04:39
Eclipse User
Originally posted by: vanbeerst.gmail.com

Hi,

When I have an Interface in a model and I apply a stereotype to it,
there is no way of retrieving that stereotype. The only stereotype that
is returned using getAppliedStereotypes() is the 'Interface' stereotype.
Is this a bug, or am I missing something here?

I have tried this in the UML editor :
1. create a model containing an Interface.
2. apply a stereotype to the interface
3. close the model
4. reopen the model
5. the stereotype application is lost
when i open the file with a text editor, the stereotype
application is there and it is correctly applied, but
the editor does not show this

I encountered the same problem using QVTO, when giving a model as input
containing an interface with some stereotype applied, the 'Interface'
stereotype is returned from a call to getAppliedStereotypes(), but the
other stereotype is not returned. When I call
getApplicableStereotypes(), the stereotype is in the list of applicable
stereotypes.

I only have this problem with Interfaces, I did not encounter the
problem with any of the other types (Class, Association, ...) so far.

Dear regards,
Tony.
Previous Topic:Unable to retrieve stereotypes applied to Interface
Next Topic:Derived feature in OCL
Goto Forum:
  


Current Time: Mon Jul 28 04:27:04 EDT 2014

Powered by FUDForum. Page generated in 0.01656 seconds