Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Modify element appearance at runtime
Modify element appearance at runtime [message #638420] Thu, 11 November 2010 09:29 Go to next message
123star  is currently offline 123star
Messages: 70
Registered: June 2010
Member
Hi,

I'd like to modify the appearance of a Comment at runtime, with custom code, in this way:

like a user would do, using the option in the appearance tab, show a stereotype with the button
"Display selected stereotype for the current selected element in the diagram"

I think there's a method that gets the name of the stereotype and the editpart of the element and then modify its appearance.

I've looked for the code that implements this feature, but couldn't find it.

Thanks in advance, 123star
Re: Modify element appearance at runtime [message #639437 is a reply to message #638420] Tue, 16 November 2010 14:36 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi Schnekenburger
Messages: 127
Registered: July 2009
Senior Member
Hi,

For the display of applied stereotypes, you should look in the plugin org.eclipse.papyrus.profile.
The class
org.eclipse.papyrus.profile.ui.compositeforview.AppearanceForAppliedStereotypeComposite
manages the behavior you have just described.

HTH,
RĂ©mi


[Updated on: Tue, 16 November 2010 14:37]

Report message to a moderator

Re: Modify element appearance at runtime [message #639447 is a reply to message #638420] Tue, 16 November 2010 15:22 Go to previous message
123star  is currently offline 123star
Messages: 70
Registered: June 2010
Member
Thanks again Remi, your help is really appreciated
Previous Topic:Problems to Clone existing diagram
Next Topic:[Info] PSF Files for Papyrus plugins
Goto Forum:
  


Current Time: Tue Sep 30 13:53:32 GMT 2014

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

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