|
|
|
Re: drag elements from the model view, don`t show the profile stereotypes. [message #650999 is a reply to message #650520] |
Thu, 27 January 2011 07:23   |
Eclipse User |
|
|
|
Hi,
The stereotypes are not visible but applied in the model. This is the same case for classes with owned properties and Operations: when you drop the class, no features are shown.
Papyrus respects the notion of "View" present in UML. You are not obliged to display each time the stereotype of an element when this element is displayed, for example. It depends on which information you want to focus. Imagine you have an element in an "overview" diagram, you would not be interested in showing specific annotations for Schedulability Analysis. It is then impossible for us to determine when the stereotype should be displayed or not. So, by default, we prefer not to display it on drag'n'drop from the model explorer.
When you select an element in the diagram, you can go to the "Apperance" section of the property view and select the list of Stereotypes to display, using their simple name or their qualified names.
HTH,
Rémi
|
|
|
|
Re: drag elements from the model view, don`t show the profile stereotypes. [message #651049 is a reply to message #651004] |
Thu, 27 January 2011 10:03  |
Eclipse User |
|
|
|
The view element, which is the representation of your element, is created by the ViewProvider. You can see for example the class org.eclipse.papyrus.diagram.clazz.providers.UMLViewProvider in the class diagram plugin.
As this is a provider for a GMF service, you can override the provided class in a new plugin using the extension point
"org.eclipse.gmf.runtime.diagram.core.viewProviders". Using a higher priority will override the default one.
HTH,
Rémi
|
|
|
Powered by
FUDForum. Page generated in 0.06588 seconds