| Integrating support for Javascript [message #657834] |
Fri, 04 March 2011 04:06  |
Hallvard Traetteberg Messages: 546 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
Hi,
I'm the main developer of Javascript for EMF (JS4EMF) and think it would
be interesting to add support for Javascript queries to Modisco, based
on JS4EMF.
What should I read and do to implement this?
Hallvard
|
|
|
| Re: Integrating support for Javascript [message #657927 is a reply to message #657834] |
Fri, 04 March 2011 11:26   |
Hugo Bruneliere Messages: 497 Registered: July 2009 |
Senior Member |
|
|
Hi Hallvard,
First, thanks a lot for your interest!
I agree it would be a really nice contribution to MoDisco.
To have more information on the MoDisco Query Manager, you can take a look to the available general documentation from http://wiki.eclipse.org/MoDisco/Components/QueryManager/Docu mentation/0.9 to get an overall idea.
For the implementation part, there is already an example of such an integration of a query language: JXPath.
You can take a look to the source code of the corresponding org.eclipse.gmt.modisco.infra.query.jxpath plug-in which is available from the MoDisco SVN.
There, you will have a concrete example of the extension points to use and interfaces to implement.
More information can also be found from the Javadoc of the org.eclipse.gmt.modisco.infra.query and org.eclipse.gmt.modisco.infra.query.core plug-ins.
I hope this help.
And don't hesitate if you need more information.
Best regards,
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
| Re: Integrating support for Javascript [message #658168 is a reply to message #658133] |
Mon, 07 March 2011 04:30   |
Hugo Bruneliere Messages: 497 Registered: July 2009 |
Senior Member |
|
|
Hi Hallvard,
Great!
Concerning the tests, you can find from the MoDisco SVN "tests" folder some projects providing tests on queries: org.eclipse.gmt.modisco.infra.query.tests for general tests on queries and org.eclipse.gmt.modisco.java.queries.tests for testing queries on a Java model.
Similarly, you could use a Java model to build your test plug-in...
Concerning the contribution of your implementation, here is some general information: http://wiki.eclipse.org/MoDisco/How_to_contribute
Basically, you will need to create a MDT-MoDisco "Contribution" bug and attach your plug-ins to it for initiating the process.
Hugo
------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
|
|
|
|
Powered by
FUDForum. Page generated in 0.01561 seconds