Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Integrating support for Javascript
Integrating support for Javascript [message #657834] Fri, 04 March 2011 09:06 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
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 16:26 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: Integrating support for Javascript [message #658133 is a reply to message #657927] Sun, 06 March 2011 22:22 Go to previous messageGo to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 04.03.11 17.26, Hugo Bruneliere wrote:
>
> I agree it would be a really nice contribution to MoDisco.

Good!

> 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.
....
> I hope this help.

Thanks, that was what I needed. Based on this example I've implemented a
Javascript-based model query factory and adapter. It seems to work well.

> And don't hesitate if you need more information.

Two questions:
- Do you have a test setup, so I can write an automated test instead of
just claiming it works?
- How to contribute the implementation?

Hallvard
Re: Integrating support for Javascript [message #658168 is a reply to message #658133] Mon, 07 March 2011 09:30 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: Integrating support for Javascript [message #658378 is a reply to message #658168] Tue, 08 March 2011 09:37 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
On 07.03.11 10.30, Hugo Bruneliere wrote:
>
> 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.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=339183

Hallvard
Previous Topic:Infix Operation Code Elements Missing from JavaCode Model to KDM Model
Next Topic:Operating/editing the results of a query
Goto Forum:
  


Current Time: Tue Apr 16 14:07:22 GMT 2024

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

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

Back to the top