Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Can a Sirius modeler be available as plug-ins ?
Can a Sirius modeler be available as plug-ins ? [message #1391190] Mon, 30 June 2014 15:15 Go to next message
Thomas Muller is currently offline Thomas MullerFriend
Messages: 9
Registered: September 2011
Junior Member
Hi all,

first of all, congratulations to the OBEO team who developped Sirius. This is really a great tool! Cool

I was using it to check differences with GMF which I've used until now.
In a current industrial project, I need to define a diagram editor and customize the figures, the anchors of bordered nodes, etc., and moreover, I don't want my Eclipse app users to edit this modeler.
Is it possible to export my modeler as a plug-in as it can be done in the regular GMF world ?

Best regards,

Thomas

[Updated on: Mon, 30 June 2014 15:28]

Report message to a moderator

Re: Can a Sirius modeler be available as plug-ins ? [message #1391659 is a reply to message #1391190] Tue, 01 July 2014 08:08 Go to previous messageGo to next message
Thomas Muller is currently offline Thomas MullerFriend
Messages: 9
Registered: September 2011
Junior Member
Ok... I think I can partially answer to myself, but please add some comments if I'm wrong.

After reading the whole available documentation, I've realized that my question is not well formulated.
Indeed, it's not Sirius philosophy to get some java code that is later customized (GMF style). Instead Sirius provides the user with a declarative way to get a "runtime available" diagram editor (among other types).

My question would rather be: "How can one get the same level of graphical customisation as what one could get after having tuned the GMF generated code?".

Then:

1. To make the diagram editor available in your target RCP or Eclipse App: you just have to ship your Viewpoint Specification Project as a plug-in of your product which will also include its dependencies.

2. To get the level of customization for figures that you can reach with using the old GMF's way, you have to contribute to "org.eclipse.gmf.runtime.diagram.ui.editpartProviders" and "org.eclipse.sirius.diagram.ui.styleConfigurationProvider".
Is that correct? Is there any available documentation on this topic?

Regards,

Thomas


[Updated on: Tue, 01 July 2014 08:09]

Report message to a moderator

Re: Can a Sirius modeler be available as plug-ins ? [message #1391669 is a reply to message #1391659] Tue, 01 July 2014 08:22 Go to previous messageGo to next message
simon moreau is currently offline simon moreauFriend
Messages: 5
Registered: April 2014
Junior Member
hi thomas,

You are right for the first point.
As for the second point, you can add features to your model editor by using the java extensions, defined in your Viewpoints (I'm trying to play with them at the moment). I'm not much help but you should look into the UML designer source (github.com/ObeoNetwork/UML-Designer/tree/sirius), it uses most of sirius functionnalities.

cordially,
Re: Can a Sirius modeler be available as plug-ins ? [message #1391678 is a reply to message #1391659] Tue, 01 July 2014 08:37 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi Thomas,

Thank you for your feedback.

Concerning the second point, it depends on what kind of customization
you want to do. If you want to extend an existing modeler (like styles
or mappings) you can use the Sirius declarative mechanisms:
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#extensibility
http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#customization

Concerning more complex customizations, (like extend existing EditParts
or Figures for instance) you can use the classic GMF extensible API.

Regards,

Florian

On 07/01/2014 10:08 AM, Thomas Muller wrote:
> Ok... I this I can partially answer to myself, but please add some
> comments if I'm wrong.
>
> After reading the whole available documentation, I've realized that my
> question is well formulated.
> Indeed, it's not Sirius philosophy to get some java code that is later
> customized (GMF style). Instead Sirius provides the user with a
> declarative way to get a "runtime available" diagram editor (among other
> types).
>
> My question would rather be: "How can one get the same level of
> graphical customisation as what one could get after having tuned the GMF
> generated code?".
>
> Then:
>
> 1. To make the diagram editor available in your target RCP or Eclipse
> App: you just have to ship your Viewpoint Specification Project as a
> plug-in of your product which will also include its dependencies.
>
> 2. To get the level of customization for figures that you can reach with
> using the old GMF's way, you have to contribute to
> "org.eclipse.gmf.runtime.diagram.ui.editpartProviders" and
> "org.eclipse.sirius.diagram.ui.styleConfigurationProvider".
> Is that correct? Is there any available documentation on this topic?
>
> Regards,
>
> Thomas
>
>
>
Re: Can a Sirius modeler be available as plug-ins ? [message #1391699 is a reply to message #1391678] Tue, 01 July 2014 09:17 Go to previous message
Thomas Muller is currently offline Thomas MullerFriend
Messages: 9
Registered: September 2011
Junior Member
Hi Simon, hi Florian,

thank you very much for your messages.

@Simon, I've cloned the UML designer source to further investigate it.

@Florian, you've guessed it, I actually need to draw custom figures, so I'll do it using GMF extensions.
Actually, it's just hard to guess from the user point of view, what is the adhesion of Sirius on the GMF framework...
I'll thus follow Simon's advice and read what as been done in the UML Designer plugin.

Many thanks to both of you.
Previous Topic:Dynamic creation of layers
Next Topic:Multi labeled nodes
Goto Forum:
  


Current Time: Tue Apr 23 13:52:55 GMT 2024

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

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

Back to the top