Open type / resource in Eclipse.jars via shortcuts?

So, in Eclipse, I know that if I turned on sources in the maven dependencies as well as the JDK, I can open the type to see its implementation (Type Ctrl + T ):

enter image description here

This works great for .java classes, but I don't have quick quick access to open resources other than java .class es. For example, I make several Clojure and JRuby , which both .jar up their sources, which are usually the sources themselves.

Is there a way to get Ctrl + T or the equivalent of "Open Resource" ( Ctrl + Shift + R ) to open resources stored in .jar files?

+8
eclipse keyboard-shortcuts
source share
3 answers

Not. To my knowledge, eclipse has no shortcut keys to open a resource file from jar. Classes can only be accessed via Ctrl+T I always need to use the package explorer to navigate the contents in the jar file.

+3
source share

It looks like they added functionality with Eclipse Mars. I'm not sure which versions really support this feature, but it does not work on my Eclipse Luna, but it works on Eclipse Mars EE. However, the shortcut is CTRL + O. You can find * .jar. It lists all the banks. This question seems rather old, however, just answering it helps future confused ones.

0
source share

I know this is a late answer, but I had the same problem.

This is not a shortcut, but ... You can create an object somewhere inside your code, import a class, and then press Ctrl or press F3 in the class and bam! you have a path in Package / Project Explorer. Of course, do not forget to mention Link with Editor .

0
source share

All Articles