|Re: launch an eclipse application with an editor [message #1403288 is a reply to message #1403107]
||Mon, 21 July 2014 12:23
| Alex Lagarde
Registered: May 2010
these are general Eclipse plugins question and not Sirius-related per say.
Eclipse uses a plugin-based architecture. So to make the odesign
available you must define it inside an Eclipse plugin (the Viewpoint
Specification Project) and contribute to some Eclipse extension point to
make Sirius aware that your plugin contributes a new odesign file (this
is done in the Viewpoint Specification Project's plugin.xml file). I
strongly recommand you read this Vogela tutorial  to understand how
Eclipse plugins work.
Every steps above are done automatically by the Sirius Wizards. Now you
have 2 ways of lauching Sirius with your odesign :
1. Launch a new runtime application, that will embeed all the plugins
defined in your workspace. Apparently you have succeeded to do so. This
is the best way to quickly test your odesign while developping it, but
2. Build and package your Metamodel Plugins and the Viewpoint
Specification Project so that end-users can install them inside their
own Eclipse bundles. To do so, I invite you to have a look at this Tycho
tutorial  and the Ecore Tools example 
Once installed, the end-user will be able to activate the Viewpoints you
defined inside their own Modeling Projects.
Do not hesistate to ask further questions,
Le 21/07/2014 14:05, mouhcine amira a écrit :
> Thanks Maxime, your answer is very helpful :) .
> So, if I correctly understood, I must do the steps in
> https://wiki.eclipse.org/Sirius/Tutorials/4MinTutorial and then replace
> the file .odesign by the one edited by my collegue.
> The problem is that I'm just a beginner and don't know how to do these
> steps programmatically :cry:
> how can I launch a new eclipse application ( "click on Run / Run
> Configurations and double click on Eclipse Application to get a
> New_configuration. You have to specify VM arguments in this new
> configuration as follows: ..." ) with java code ? (do I have to do this
> step even if the user of my plugin is interested in just editing
> instances of the model and not viewPoints ?)
> And same question for the other steps: create a new modeling project,
> import resource, create ViewPoint specification project and replace its
> .odesign file by the edited one ...
> All these steps must be done in the background and launch to the user an
> editor where he can edit an instance of my metamodel.
> Thanks again !
Powered by FUDForum
. Page generated in 0.02402 seconds