My purpose is to add new buttons in Papyrus Palette (e.g Class diagram) that are linked to stereotypes defined in My profile. It means that i want to automate the stereotype application on the diagram element: Just drag the new created button (e.g class stereotyped) to the Diagram Editor.
Please can you give me Ideas where and how the code modification will be??
I modified the palette through "Palette Customization" and not through modifying the code.
1) i followed this Tutoriel: PapyrusDevelopperTutorial_OnPaletteCustomization_v1.0_d2010-05-10.odt
located in : http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papyrus/branches/0.9.X/doc/DevelopperDocuments/How-To/
2) create a plugin in which you create a folder and put you customized palette XML file as shown in the tutoriel(follow the steps). Then install this plugin. This let you o use the paltte in every Papyrus Project you create.
The PDF File i attached can help you to understand.