Method will cease, but how to find what to use instead?

Got message: Deprecated method usage: "ProjectImpl.getProjectFile().
This method will cease to exist in IDEA 7.0 final release."
But there is no suggestion what method to use. Tried to search some documentation on this, but not successful.
Could someone point me, where to find information, what method should be used instead

4 comments
Comment actions Permalink

Hello Egidijus,

Got message: Deprecated method usage: "ProjectImpl.getProjectFile().

This method will cease to exist in IDEA 7.0 final release."

But there is no suggestion what method to use. Tried to search some
documentation on this, but not successful.

Could someone point me, where to find information, what method should
be used instead


This depends on what exactly you need to get. IDEA 7 will (likely) have a
mode of storing the project configuration in a directory rather than a single
file, so there will be no .ipr file for such projects.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I formerly used this method as a unique key for given project. And for this purpose I have replaced it with Project.getLocationHash().

0
Comment actions Permalink

I have used to get parent directory - so called project working directory "ProjectImpl.getProjectFile().getParent()". Now I suppose to use "ProjectImpl.getProjectFile().getBaseDir()", right? Is there any commented source for open API or java doc, for information like this?

0
Comment actions Permalink

Hello Egidijus,

I have used to get parent directory - so called project working
directory "ProjectImpl.getProjectFile().getParent()". Now I suppose to
use "ProjectImpl.getProjectFile().getBaseDir()", right?


ProjectImpl.getBaseDir(), right.

Is there any
commented source for open API or java doc, for information like this?


All the available information is included in the plugin development package.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.