Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Share custom palettes(palette status)
Share custom palettes [message #1748068] Fri, 18 November 2016 10:35 Go to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hey Papyrus community
There are several ways to create palettes in Papyrus :
- from edit palette
- using view points

first question :
- do the features available in edit palette are available through viewpoints ?

Then I have created papyrus theme, palette using edit palette tool. What is the best/recommended way to share these customization (palette.xml in metadata, ...) ? Oomph ? zip and share workspace ? extension point ?

If I miss a documentation page about this I'm sorry Sad




Re: Share custom palettes [message #1748077 is a reply to message #1748068] Fri, 18 November 2016 10:57 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
hi,

In which version did your works ?

A way to customize palette is to create a new PaletteConfiguration model. After you can use it through an extension point. I don't know exactly how to do it with viewpoint, sorry.
In oxygen, when you create a new palette configuration model with Palette > Right click > customize: this tool now create palette configuration model with associated element type model. There is a button to export it to workspace.
The use of palette.xml is deprecated.

HTH

Mickaël
Re: Share custom palettes [message #1748079 is a reply to message #1748077] Fri, 18 November 2016 10:59 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Papyrus 2.0.1
I will try the papyrus configuration model, but I did not find way to add aspect actions on them




Re: Share custom palettes [message #1748095 is a reply to message #1748079] Fri, 18 November 2016 12:56 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
If I'me correct, aspect actions was associated to palette.xml. Now action must passed by element type framework, with for example helper advice .

The tools available in oxygen permits to generate necessary files: https://youtu.be/3_SZLt8ehQY
Re: Share custom palettes [message #1748096 is a reply to message #1748095] Fri, 18 November 2016 13:01 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
OK thank you for the link. can i use Oxygen to define my palette and distribute it to a neon installation ?



Re: Share custom palettes [message #1748097 is a reply to message #1748096] Fri, 18 November 2016 13:06 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
no, there is some changes at the element type metamodel. References between specialized type are now href and not done with a string id. You can try it to have an idea of the structure but it will not be compliant with 2.0
Re: Share custom palettes [message #1748332 is a reply to message #1748097] Tue, 22 November 2016 10:28 Go to previous messageGo to next message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi Tristan,

You will find the code that update neon element type to oxygen here
org.eclipse.papyrus\plugins\developer\org.eclipse.papyrus.dev.types\src\org\eclipse\papyrus\dev\types\handlers\MigrateSpecializations.java

It should be easy to switch some code between line 110-125, to have something that downgrade your files.

Benoit
Re: Share custom palettes [message #1748642 is a reply to message #1748332] Fri, 25 November 2016 16:05 Go to previous messageGo to next message
Sebastien GABEL is currently offline Sebastien GABELFriend
Messages: 16
Registered: July 2013
Junior Member
Hi,

Just one remark concerning the original question. If it is not the case for Oxygen (I didn't check yet), it would be excellent to couple the PaletteConfiguration model capabilities with the View Point framework. It would really make sense. In the latest release (Neon), this framework is still working with former XML palettes, considered as deprecated.
Re: Share custom palettes [message #1748645 is a reply to message #1748642] Fri, 25 November 2016 16:37 Go to previous messageGo to next message
Sebastien GABEL is currently offline Sebastien GABELFriend
Messages: 16
Registered: July 2013
Junior Member
Good news: apparently, for Oxygen it is possible to reference *.paletteconfiguration models from a view point configuration (seen in Papyrus-RT)
Re: Share custom palettes [message #1748646 is a reply to message #1748642] Fri, 25 November 2016 16:39 Go to previous messageGo to next message
Sebastien GABEL is currently offline Sebastien GABELFriend
Messages: 16
Registered: July 2013
Junior Member
Good news: apparently, for Oxygen it is possible to reference *.paletteconfiguration models from a view point configuration (seen in Papyrus-RT)
Re: Share custom palettes [message #1748649 is a reply to message #1748332] Fri, 25 November 2016 16:58 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
and by the way @Benoit, thank you for the link !



Previous Topic:slightly OT: Just for fun - my contribution to "ARIS in 10 years"
Next Topic:Shift Delete or Delete
Goto Forum:
  


Current Time: Fri Mar 29 12:10:20 GMT 2024

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

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

Back to the top