Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Deploy DSL
Deploy DSL [message #1665523] Wed, 11 March 2015 09:14 Go to next message
Adrien Lefevre is currently offline Adrien LefevreFriend
Messages: 27
Registered: January 2015
Junior Member
Good morning,

I would like to deploy my DSL as a project. I explain myself:
I would like that my DSL appears as a new project (File > New Project...). Moreover, when a model of my DSL is created, I would like to have the viewpoints (diagrams, tables) associated to it automaticaly.

Is it possible to deploy my DSL in Eclipse?

Thank you,

Adrien.
Re: Deploy DSL [message #1665643 is a reply to message #1665523] Wed, 11 March 2015 10:24 Go to previous message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

If you want to contribute a new wizard you will need to use the Eclipse
UI extension point "org.eclipse.ui.newWizards".
As you want to initialize a modeling project with a model conforms to
your DSL, I think the easiest is that you look how is contributed the
"new modeling project" wizard. Look for
org.eclipse.sirius.ui.tools.internal.wizards.ModelingProjectWizard. I
guess that your wizard should extend this one and add a step where you
create your own model of your DSL and activate the dedicated Viewpoint
that you specified in your DSL.
By the way, if needed, you can go further and check the "Initialization"
parameter on a "representation description" in your VSM to automatically
create a Diagram/Table/Tree on activation of your viewpoint. You can
also check the "Show on startup" parameter so these Diagram/Table/Tree
will automatically open. This way your enduser could work directly after
the wizard process without investigating where/how to create a
representation.

Regards,
Steve

Le 11/03/2015 10:14, Adrien Lefevre a écrit :
> Good morning,
>
> I would like to deploy my DSL as a project. I explain myself:
> I would like that my DSL appears as a new project (File > New
> Project...). Moreover, when a model of my DSL is created, I would like
> to have the viewpoints (diagrams, tables) associated to it automaticaly.
>
> Is it possible to deploy my DSL in Eclipse?
>
> Thank you,
>
> Adrien.


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Defining a dynamic context submenu
Next Topic:Petri-Net Editor Edge Contraints
Goto Forum:
  


Current Time: Fri Apr 26 19:24:42 GMT 2024

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

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

Back to the top