Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Change the display of a stereotype at the creation of this one ? (Aspect Tool Provider ? )
Change the display of a stereotype at the creation of this one ? [message #858676] Fri, 27 April 2012 08:42
LE HALPER Nicolas is currently offline LE HALPER Nicolas
Messages: 13
Registered: April 2012
Junior Member
Hi,

I am a new user of Papyrus, and I want to create stereotypes which are displayed by default in the form of icons.

I read that I have to use an Aspect Tool Provider. However, it didn't really work very well. Indeed, even after I added the extension point to the plugin, the AbstractAspectActionProvider is not called. Sad

public class StereotypeDisplay extends AbstractAspectActionProvider {
	
	public StereotypeDisplay() {
	}

	public IAspectAction createAction(Node configurationNode) {
		StereotypeDisplayPostAction action = new StereotypeDisplayPostAction();
		action.init(configurationNode, this);
		return action;
	}

	public boolean isEnable(IPaletteEntryProxy entryProxy) {
		return true;
	}
	
	public static NodeList createConfigurationNode(String stereotypeList) {
		return null;
	}

}


If anyone of you have a solution I would really appreciate it.^^

Thanks for answers Wink
Previous Topic:Papyrus SysMl metamodel weakness for M2M/M2T
Next Topic:[SysML] New Papyrus: Problem creating Parametric Diagram
Goto Forum:
  


Current Time: Fri Sep 19 11:58:56 GMT 2014

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

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