|Re: Creating a project programatically? [message #1077 is a reply to message #1049]
||Thu, 05 April 2007 10:10
Originally posted by: mikhail.kalugin.xored.com|
This code looks right. Please, check following things:
1. Nature for project was set correctly.
2. There are registered interpreters with such nature.
3. Try to update code from CVS. Today I've discovered some bugs with
container resolving and fixed it.
Mark Howe wrote:
> What is the correct way to add the default interperter (and it's paths)
> to a newly created project (created programatically). Snippet:
> ...create/open IProject ...setNatures...
> IDLTKProject rubyProject = DLTKCore.create(newProject);
> List<IBuildpathEntry> entryList = new ArrayList<IBuildpathEntry>();
> entryList.add(DLTKCore.newSourceEntry(newProject.getFullPath ().append( "app/controllers")));
> ...other paths....
> entryList.add(ScriptRuntime.getDefaultInterpreterContainerEn try());
> IBuildpathEntry[entryList.size()]), null);
> The paths like "app/controllers" are added correctly but the
> defaultInterpreter isn't. No Interpreter paths show up and the
> Interpreter displays (unbound). Any idea what I'm missing?
Powered by FUDForum
. Page generated in 0.03065 seconds