Action fired after key release?

Hello,
When writing code in editor, after you release the key, IDEA checks whether the related class is imported or not.
If the class is not imported, it checks whether the class is inside classpath.
If the class is not found in the classpath, "cannot resolve symbol" error is displayed.

I want to learn which action(s) are fired, when we release a key in the editor.

Thank you.

5 comments

Hi,
I think at most TypedAction will be fired, all other activity behind the scene. What exactly you want to do?

Thanks,
Dmitry

0

Hello Halil,

HK> When writing code in editor, after you release the key, IDEA checks
HK> whether the related class is imported or not.
HK>
HK> If the class is not imported, it checks whether the class is inside
HK> classpath.
HK>
HK> If the class is not found in the classpath, "cannot resolve symbol"
HK> error is displayed.
HK>
HK> I want to learn which action(s) are fired, when we release a key in
HK> the editor.

The auto-import popup is not tied directly to any actions. When the document
is modified (by typing a key or otherwise), the auto-reparse timer is restarted
(its duration can be changed in Editor | Behavior | Error highlighting |
Autoreparse delay). When the timer expires, a background thread analyzes
the code and performs all kinds of highlighting, including adding "cannot
resolve symbol" errors.

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


0

I'm sorry. I think I asked the wrong way. When we execute "make project(ctrl+F)" or "rebuild project", IDEA starts to compile classes, if there are missing classes not found in the classpath, it reports them. What I want to learn is, the list of missing classes in a project.

Thank you.

0

Hello Halil,

HK> I'm sorry. I think I asked the wrong way. When we execute "make
HK> project(ctrl+F)" or "rebuild project", IDEA starts to compile
HK> classes, if there are missing classes not found in the classpath, it
HK> reports them. What I want to learn is, the list of missing classes
HK> in a project.

The list of missing classes in this case is provided by the Java compiler,
and IDEA doesn't parse it in any way.

It will likely be easier to help you if you describe in more details what
you're trying to achieve.

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


0

In the attachment, the results of a build are displayed in the Messages screen. I want to catch the names of the missing classes like Logger class which can be seen in the screenshot.

I am trying to write a plugin to resolve classpath problems automatically. If I can find the list of missing classes, I will search a set of jar files, and will try to find the jar files which contain these missing classes. If I can find the appropriate jar files, I will add them to the classpath of the project. I think it is more clear now:).



Attachment(s):
Untitled.png
0

Please sign in to leave a comment.