Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Completion in editor without project?(Willing to have completion available in editor even from a different nature project)
Completion in editor without project? [message #512497] Fri, 05 February 2010 10:12 Go to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOOFriend
Messages: 52
Registered: January 2010
Member
Hi,

What I want already mentioned in the title. How can I have completion engine in a DLTK editor without script language project. Reading the third step of the tutorials I noticed that an IProject was necessary in order to enjoy completion.

If there is no way to avoid projects, is it possible to enable completion by adding programmatically a specific project nature to other projects?

Regards
Re: Completion in editor without project? [message #512858 is a reply to message #512497] Mon, 08 February 2010 08:35 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Kevin,

Definitely, it should work if you add your nature to the project. The only issue is if project already has other DLTK nature, since at the moment DLTK will take only the first one. We want to fix it, but I can't promise the exact date.

Generally, the nature & project are required to enabled indexing of project files. Without index the completion is limited to this file types/functions only, but if it makes sense for your language then you can implement this mode as well.

Regards,
Alex
Re: Completion in editor without project? [message #515287 is a reply to message #512858] Thu, 18 February 2010 11:12 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOOFriend
Messages: 52
Registered: January 2010
Member
Hi,

Is there any DLTK way to add a nature or shall I do it the regular way ?

Regards

[Updated on: Thu, 18 February 2010 11:13]

Report message to a moderator

Re: Completion in editor without project? [message #515899 is a reply to message #515287] Mon, 22 February 2010 07:48 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Kevin,

You can call org.eclipse.dltk.ui.wizards.BuildpathsBlock.addScriptNature( IProject, IProgressMonitor, String).

Regards,
Alex
Previous Topic:[BUILD] I-I201002221005-201002221005
Next Topic:Using ECF shared editing with Python
Goto Forum:
  


Current Time: Thu Dec 18 00:52:34 GMT 2014

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

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