Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » oxygen extend paletteDefinition(oxygen extend paletteDefinition)
oxygen extend paletteDefinition [message #1796498] Mon, 15 October 2018 11:20 Go to next message
li Hua is currently offline li HuaFriend
Messages: 1
Registered: October 2018
Junior Member
Hi all,

I have done a SysML profile, I registered it and I added it to a plugin. I also show the profile properties in the properties view. All this work fine.

Now, I want customize activity diagram palettes in order to add the stereotyped classes to the palettes to make working with the profile easier.but it isnt work。
palette.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<paletteDefinition>
<content>
<drawer iconpath="/icons/Contraint1.gif" id="Contraint1_Drawer" name="Time_Contraint">
<aspectTool description="create timeContraint"
iconpath="platform:/plugin/ProfileContraintTest/icons/Contraint1.gif"
id="clazz.tool.class_Contraint_TimeContraint"
name="Time_Contraint(Class)"
refToolId="clazz.tool.class">
<postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
<stereotypesToApply>
<stereotype stereotypeName="ProfileContraintTest::TimeContraint"/>
</stereotypesToApply>
</postAction>
</aspectTool>
</drawer>
</content>
</paletteDefinition>

plugin.xml
<extension
point="org.eclipse.papyrus.infra.gmfdiag.common.paletteDefinition">
<paletteDefinition
ID="ProfileContraintTest.palette"
class="org.eclipse.papyrus.infra.gmfdiag.common.service.ExtendedPaletteProviderConfiguration"
name="Real-Time Elements"
path="palette.xml">
<Priority
name="Medium">

</Priority>
<editor id="org.eclispe.papyrus.uml.diagram.clazz"/>
</paletteDefinition>
</extension>


Re: oxygen extend paletteDefinition [message #1799674 is a reply to message #1796498] Wed, 12 December 2018 08:44 Go to previous message
Nicolas FAUVERGUE is currently offline Nicolas FAUVERGUEFriend
Messages: 47
Registered: February 2014
Member
Hi,

Since the oxygen version, the palette is now managed by the architecture framework.
Your paletteconfiguration file seems to be deprecated, but you can create your palette configuration file with the 'Customize...' menu into the palette. this will help you a lot. You can manage to apply stereotype into post actions but actually we prefer to define stereotype application into elementtypes.
After the palette configuration creation, this one need to be referenced into your viewpoint of diagram in your architecture file.
If you need more information about the architecture framework, you can watch this video : https://www.youtube.com/watch?v=U62b2EQObRg&t=320s

Sorry for the late answer.

HTH,
Nicolas
Previous Topic:key-binding
Next Topic:Decorate ModelExplorer-Element in Diagram
Goto Forum:
  


Current Time: Mon Dec 16 01:47:11 GMT 2019

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

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

Back to the top