Attach source code to plug-in: Modeling Workflow Engine 2 Launch [message #1765600] |
Mon, 12 June 2017 17:13 |
Jim Wang Messages: 4 Registered: May 2017 |
Junior Member |
|
|
Hello,
Disclaimer: I am totally new to Eclipse, OSGi, EMF and xtext so please forgive my naive question and read past my inappropriate terminology.
TL;DR: How do I find and attach source code to a plug-in dependency in eclipse? Namely: org.eclipse.emf.mwe2.launch_2.9.0.v201605261103.jar.
We have started on an xtext project where we have defined a grammar, scoping, formatting and code generation - following guides all the way. However the time has come for us to dive deeper into the guts of xtext to see how it all 'hangs-together' and I wanted to start by examining how the mwe2 workflow is run.
With my default Eclipse Modelling Tools installation, I have a plug-in dependency: org.eclipse.emf.mwe2.launch_2.9.0.v201605261103.jar. Inside this lives Mwe2Runner.java. However I cannot find how to attach the source code to this jar. I can't quite see how the installed software components map to my plug-in dependencies i.e. given the above jar, which update site do I need to use and which software component (i.e. name) do I need?
As I'm new to the ecosystem, I'm not sure if this is a question of understanding xtext, eclipse or OSGi more generally so any guidance is appreciated.
Many thanks in advance.
Jim
|
|
|
Re: Attach source code to plug-in: Modeling Workflow Engine 2 Launch [message #1765656 is a reply to message #1765600] |
Tue, 13 June 2017 08:01 |
|
When developing plugins you will have to set a target platform in Eclipse. This target platform has to include source bundles, which is usually bundled with SDK features.
If you have created a target definition with the Xtext wizard, add org.eclipse.emf.mwe2.launch.source.
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.mwe2.launch.source" version="0.0.0"/>
<repository location="http://download.eclipse.org/modeling/emft/mwe/updates/releases/2.9.0/"/>
</location>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds