Skip to main content



      Home
Home » Eclipse Projects » Sirius » Sharing Mappings between projects in different plugins
Sharing Mappings between projects in different plugins [message #1703341] Thu, 30 July 2015 14:24 Go to next message
Eclipse UserFriend
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 10:44] by Moderator

Re: Sharing Mappings between projects in different plugins [message #1703610 is a reply to message #1703341] Mon, 03 August 2015 11:49 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Sharing Mappings between projects in different plugins [message #1705011 is a reply to message #1703610] Tue, 11 August 2015 08:01 Go to previous message
Eclipse UserFriend
That worked. Thanks
Previous Topic:Problem creating logical connector
Next Topic:OutOfMemory
Goto Forum:
  


Current Time: Mon Jul 28 06:18:32 EDT 2025

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

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

Back to the top