Ctrl+Click to open a Java class

Asked

Viewed 81 times

1

When trying to open a class, either from my own project or native Java using Ctrl+Click, the following message appears:

inserir a descrição da imagem aqui

How do I set up Eclipse to open the class source code using Ctrl+Clicking?

I’ve seen people having to use a plugin installed by Marketplace and configuring in Eclipse preferences.

1 answer

1

If you are using Maven or some other dependency management tool, and the dependency has a source trailer it will be shown automatically.

In the case of dependencies without source, you can use the following Eclipse extension:

inserir a descrição da imagem aqui

The class will be opened in the same way as today:

inserir a descrição da imagem aqui

With the right button you can open with a decompiler installed by the extension:

inserir a descrição da imagem aqui

And just like that!

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.