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
Please sign in to leave a comment.
Hello Egidijus,
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!"
I formerly used this method as a unique key for given project. And for this purpose I have replaced it with Project.getLocationHash().
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?
Hello Egidijus,
ProjectImpl.getBaseDir(), right.
All the available information is included in the plugin development package.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"