Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Type / Resource in Eclipse .jars through shortcuts?

So in Eclipse, I'm aware that if I have included sources in maven dependencies, as well as the JDK, I can open a type to see it's implementation (Type Ctrl+T):

enter image description here

This is great for .java classes, but I don't appear to have any quick shortcut to open resources other than java .classes. For instance, I do some Clojure and JRuby, which both .jar up their sources, which are generally just the sources themselves.

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

like image 537
Nick Klauer Avatar asked Jun 07 '12 12:06

Nick Klauer


People also ask

How do I open an open resource in Eclipse?

We can access it in two ways: Using the keyboard shortcut, which is Ctrl + Shift + R on a PC or Cmd + Shift + R on a Mac. Opening the menu under Navigate > Open Resource.

What is Ctrl Shift G in Eclipse?

4- CTRL-SHIFT-G: used to search for the references of a specific method in the work space. Mostly used when we want to know who calls a specific method. 5- CTRL-SHIFT-O: used to organize the imports of a file.

What is Ctrl Shift R in Eclipse?

Open project, file, etc. Ctrl+Shift+R. Open Resource (file, folder or project) Alt+Enter. Show and access file properties.


1 Answers

No. As per my knowledge, there are no keyboard shortcuts in eclipse to open resource file from jar. Only classes can be accessed by Ctrl+T. I always have to use package explorer to navigate contents in jar file.

like image 60
Pranalee Avatar answered Sep 30 '22 11:09

Pranalee