Intellij Idea 9.0.2 - UsageViewImplUtil

Hi all,

I'm having a problem when trying to use the class com.intellij.usages.impl.UsageViewImplUtil which says no such class exists.
But I looked at the api and saw that class exists. ( http://www.jetbrains.com/idea/openapi/5.0/com/intellij/usages/impl/UsageViewImplUtil.html )

The project I'm doing is upgrading a plugin which had build for IDEA 6. In that UsageViewImplUtil has used several times. I'm working with the IDEA community version 9.0.2.

Also the project has utilized com.intellij.psi.PsiManager class and the following methods have been used:

  • findClass( java.lang.String,com.intellij.psi.search.GlobalSearchScope )
  • findPackage( java.lang.String )


But I got some errors such that methods do not exist.

And when I tried to use getCompilerOutputPath() method of the class com.intellij.openapi.roots.ModuleRootManager, it again says such method not exists.( as per the API, there should be the method)     

So are there any alternatives or should I use some other .jar s ?

thanks in advance.

5 comments

Hello Thisum,

The UsageViewImplUtil class indeed does not exist any more. For missing PsiManager
and ModuleRootManager methods, please refer to http://confluence.jetbrains.net/display/IDEADEV/DianaPluginMigration+Guide
.

I'm having a problem when trying to use the class
*com.intellij.usages.impl.UsageViewImplUtil which says no such class
exists.*

But I looked at the api and saw that class exists. (
http://www.jetbrains.com/idea/openapi/5.0/com/intellij/usages/impl/Usa
geViewImplUtil.html )

The project I'm doing is upgrading a plugin which had build for IDEA
6. In that UsageViewImplUtil has** used several times. I'm working
with the IDEA community version 9.0.2.

Also the project has utilized com.intellij.psi.PsiManager class and
the following methods have been used:

  • findClass(

java.lang.String,com.intellij.psi.search.GlobalSearchScope )

  • findPackage( java.lang.String )


But I got some errors such that methods do not exist.

And when I tried to use getCompilerOutputPath() method of the class
com.intellij.openapi.roots.ModuleRootManager, it again says such
method not exists.( as per the API, there should be the method)

So are there any alternatives or should I use some other .jar s ?

thanks in advance.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5261497#5261497

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



0

thanks,

May I know a way to look into the updated API?

And also Is there any alternative for UsageViewImplUtil class?

thanks in advance..

0

Hello Thisum,

May I know a way to look into the updated API?


You need to download the source code of IntelliJ IDEA 9.0 Community Edition.
We're no longer publishing pre-built JavaDoc documentation.

And also Is there any alternative for UsageViewImplUtil class?


What are you trying to accomplish?

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


0

What I'm trying to do is to use
UsageViewImplUtil.runProcessWithProgress( ); method

As I said in the previous version of this plugin, has used this method.
So how can I accomplish this process without UsageViewImplUtil class?

0

Hello Thisum,

What I'm trying to do is to use
UsageViewImplUtil.runProcessWithProgress( ); method
As I said in the previous version of this plugin, has used this
method. So how can I accomplish this process without
UsageViewImplUtil class?


As I've already said, to run a process with progress, you need to use the
ProgressManager class.

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


0

Please sign in to leave a comment.