Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Adding new buttons in Papyrus Palette
icon5.gif  Adding new buttons in Papyrus Palette [message #1003992] Tue, 22 January 2013 11:37 Go to next message
Walid Ban is currently offline Walid Ban
Messages: 33
Registered: January 2013
Member
Hello everybody,
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??

For Info:
1) Since the code imported by "http://download.eclipse.org/modeling/mdt/papyrus/psf/subclipse/plugins_http.psf" contains bugs that didn't allow me to create an UML Model, I have used the code imported from "https://speedy.supelec.fr/Papyrus/svn/Papyrus/core/branch/1.11.X/".

2) Palette customization is not an efficient solution because it works only in the current Model where the palette was customized.

Thank you....
Re: Adding new buttons in Papyrus Palette [message #1059547 is a reply to message #1003992] Mon, 20 May 2013 12:00 Go to previous messageGo to next message
Leila A is currently offline Leila A
Messages: 17
Registered: February 2013
Junior Member
Dear Walid Ban

Can you please let me know if you succeed to modify palette at run time and how did you handle it? I have been working on it for about 2 weeks and I still I don't know what to do Sad

Thanks and regards,
Leila
Re: Adding new buttons in Papyrus Palette [message #1060390 is a reply to message #1059547] Fri, 24 May 2013 12:28 Go to previous messageGo to next message
Walid Ban is currently offline Walid Ban
Messages: 33
Registered: January 2013
Member
Hi Layla,
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.

For info: if you use Eclipse Kepler or Juno version, some details will be modified when creating the plugin. This discussion can help you: http://www.eclipse.org/forums/index.php/m/1014404/#msg_1014404

Good luck Smile
Re: Adding new buttons in Papyrus Palette [message #1060570 is a reply to message #1003992] Mon, 27 May 2013 06:42 Go to previous messageGo to next message
Leila A is currently offline Leila A
Messages: 17
Registered: February 2013
Junior Member
Thanks dear Walid! Smile
But I need to change the palette programmatically Sad

Regards,
Leila
Re: Adding new buttons in Papyrus Palette [message #1060610 is a reply to message #1060570] Mon, 27 May 2013 10:10 Go to previous message
Walid Ban is currently offline Walid Ban
Messages: 33
Registered: January 2013
Member
Aha ok..Smile
Me too i thought i 've got to change the code, but i think the result in the end is the same. that's why i followed the easiest way
regards
Previous Topic:model validation problem sequence diagram
Next Topic:No Applicable Items on File | New
Goto Forum:
  


Current Time: Mon Sep 22 22:36:36 GMT 2014

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

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