open API - When to expect stability?

Hi Folks,

I've just spent some time looking at what would be involved in making the Clover Plugin support the EAP builds. We've had alot of interest in supporting the EAP builds so are keen to do so.

It appears that the OpenAPI is now somewhat broken. I was looking at this thread: http://www.intellij.net/forums/thread.jsp?forum=23&thread=37701 - the situation doesn't seem to have changed with the latest EAP (929) or am I missing something?

The Clover Plugin needs to find project roots (src, output paths), and I can't see from the current EAP openAPI how to do that.

If anyone can point out something I've missed, that would be cool :)

Also, if anyone can comment on plans/timeline for development of the Open API that would also be appreciated.

Cheers,
-Brendan
http://www.thecortex.net/clover

3 comments
Comment actions Permalink

Brendan,

What about ProjectRootManager.getRootFiles() ?
I know it is deprecated but I also know JetBrains is right now working on the multi-module project implementation and what you are asking for will be changed by it (hence the deprecation).
I do not know the timeline obviously but it should not be too long now.

Jacques

0
Comment actions Permalink

Thanks Jacques,

I was intending to use the deprecated methods on ProjectRootManager, but the semantics of these methods seems to have changed; I had difficulty getting the compiler output path for a given source root. There used to be a method ProjectRootManager.getOutputPath(VirtualFile srcRoot) that has been removed; There is ProjectRootManager.getOutputPaths(), but in my experiments, it returns an empty array...

I think I'll keep watching the EAP releases and start work when the multi-module project stuff is available.

Cheers,
-Brendan

0
Comment actions Permalink

Did you try ProjectRootManager.getFileIndex()?
I haven't played with it but with luck you might be able to get what you want.

BTW did you submit your request? I would like to vote for it ;)

Jacques

0

Please sign in to leave a comment.