Sharing Mappings between projects in different plugins [message #1703341] |
Thu, 30 July 2015 18:24 |
Bailey Trenton Messages: 31 Registered: May 2015 |
Member |
|
|
Hello,
I was wondering if it is possible to reuse node mappings in diagram extensions that are in a different plugin than the base diagram?
I have a base diagram designed in one plugin.
I want to have potentially many other diagrams that extend the base defined in multiple other plugins and want to be able to use the same mappings across diagrams and in different layers on other diagrams.
I have tried using the the Import/Reused Mappings in my diagram extension but nothing shows up in the list. Also if I define a Node Import, there is nothing in the list of mappings to import
Am I doing something wrong or is this not possible?(I am using Sirius 2.0.5 currently)
Thanks,
B
PS. Can you share user defined colors palettes in between design files?
[Updated on: Fri, 31 July 2015 14:44] Report message to a moderator
|
|
|
Re: Sharing Mappings between projects in different plugins [message #1703610 is a reply to message #1703341] |
Mon, 03 August 2015 15:49 |
|
Le 30/07/2015 20:24, Bailey Trenton a écrit :
> Hello,
Hi.
> I was wondering if it is possible to reuse node mappings in diagram
> extensions that are in a different plugin than the base diagram?
>
> I have a base diagram designed in one plugin.
> I want to have potentially many other diagrams that extend the base
> defined in multiple other plugins and want to be able to use the same
> mappings across diagrams and in different layers on other diagrams.
>
> I have tried using the the Import/Reused Mappings in my diagram
> extension but nothing shows up in the list. Also if I define a Node
> Import, there is nothing in the list of
> Am I doing something wrong or is this not possible?(I am using Sirius
> 2.0.5 currently)
You first need to load the "base" VSM so that the mappings are visible.
Anywhere in the editor simply right-click and select "Load resource...".
Choose "Browse workspace..." if the other VSM is in your workspace.
Otherwise you need to enter the raw URL, something like:
platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign
Once you hit enter, the new resouce is loaded inside the editor and the
elements it defines (including mappings and colors) can be directly
referenced where appropriate (via combo and/or selection dialogs).
If you create an extension E which extends a VSM from a base plug-in B,
also make sure that the plug-in which defines E correctly depends (at
the OSGi level) of B.
> PS. Can you share user defined colors palettes in between design files?
Custom colors will be available in the combos if the VSM which defines
the corresponding palette is loaded as described above.
Regards,
Pierre-Charles
--
Pierre-Charles David - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03537 seconds