Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Integrating DLTK in a RCP application(DLTK seems to be tied to Eclipse IDE)
Integrating DLTK in a RCP application [message #503944] Wed, 16 December 2009 15:12 Go to next message
Milton  is currently offline Milton Friend
Messages: 10
Registered: October 2009
Junior Member

I am creating an RCP application that allows to create, run and debug scripts using Rhino. I already have a GUI that allows to edit scripts using an editor with syntax highlight, debugging and running the scripts.

It wasn't until I decided to add code completion, hover help and a code tree that I found about DLTK while researching on the topic. I would really appreciate an advice at this point on what is better for me to do:

1. I could discard the current work and start from scratch trying to integrate DLTK JavaScript in my application.

2. I can keep my current work and try to use DLTK to build the AST and reuse as much as I can to provide code completion, hover help and a code tree.

My application extends JavaScript with some classes of my own, so whatever approach I take needs to allow this. Also, while following the Python tutorial it seems to me that DLTK is meant to be used in Plug-in Projects only, because it seems to rely heavily in Eclipses IDE features like project natures. Is it possible to integrate DLTK in a RCP application?

Is there any place where I can have more information about how to do this?

Thank you,
Re: Integrating DLTK in a RCP application [message #506751 is a reply to message #503944] Sat, 09 January 2010 12:58 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Milton,

Sorry for the late answer.

I think both projects win if you would use DLTK Javascript directly.

You are right that DLTK Core depends on org.eclipse.core.resources and EMF. It's hard to avoid them anyway, since other Eclipse subsystems (Debug, Editors, etc.) also depend on resources.
So, you just include these plugins into your RCP application and users' projects would be setup in the workspace, etc. like it works for you now in JDT Smile

Going this way would allow you to use DLTK plugins directly, without need to copy & paste individual classes, etc., so it's much easier for you to upgrade.
Also I hope that you would provide back some patches/improvements/extensions.

For development related questions it would be better to subscribe to since it has more subscribers, etc.

Previous Topic:[BUILD] S-2.0M4-200912141114
Next Topic:2.0 new and noteworthy or similar?
Goto Forum:

Current Time: Sat Apr 21 02:27:22 GMT 2018

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

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