Skip to main content


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 Friend
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 SchnekenburgerFriend
Messages: 169
Registered: July 2009
Location: Palaiseau, France
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


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/

[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 Friend
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: Sat Apr 20 03:59:02 GMT 2024

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

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

Back to the top