"Open Type" command does not respond in Eclipse workspace
Asked Answered
K

7

20

In Eclipse, you can use Ctrl + Shift + T to search for a type. Unfortunately, Eclipse does not respond to this hotkey in one of my workspaces.

I am running IBM AST 6.1, which is built on Eclipse 3.2.1 (see http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tins_ast_roadmap.html).

When I go to Window -> Preferences -> General -> Keys, it shows the Open Type command is set to the Key Sequence Ctrl+Shift+T "When" "In Windows". Is this correct?

I can use Ctrl+Shift+R to search for a resource in this same Workspace, using the same Ctrl and Shift keys (i.e. the keys are working). I can also use Ctrl+Shift+T on other workspaces with the same Eclipse installation.

How can I enable Ctrl+Shift+T? What other info do we need to troubleshoot?

Kaddish answered 3/5, 2011 at 13:25 Comment(0)
C
43

Do you have the right perspective opened? "Open Type" does work in the Java, JavaEE ... perspectives, but not in the "Synchronize" perspective (for example).

To enable it for the "Synchronize" perspective in eclipse Mars(4.5) first close all your opened editors then go to Window > Perspective > Customize Perspective... and in the "Action Set Availability" tab check the "Java Navigation" action set.

Coblenz answered 3/5, 2011 at 13:32 Comment(3)
D'oh! I had the Resources perspective open. Thanks!Kaddish
In any other perspective, you can go to Window>Customize Perspective... and from the dialog Command Groups Availability tab check Java Navigation to enable Open Type in that perspectiveTillett
Paul Webster answer is right one. In order for shortcut to work in any perspective its Action set must be enabled.Burgett
A
7

I was already in the right perspective so that was not the cause of my issue. However, closing and re-opening the project fixed the problem for me.

Alveolate answered 13/11, 2012 at 11:1 Comment(0)
I
7

Try to delete all Eclipse indexed names in the following way:

  1. Go to folder workspace/.metadata/.plugins/org.eclipse.jdt.core
  2. Remove all *.index files and savedIndexNames.txt
  3. Restart Eclipse

The recommendations were provided by Mike Schrag and the whole trace can be found here.

Isobelisocheim answered 1/11, 2013 at 14:21 Comment(0)
I
2

The same problem was resolved for me in a slightly different way... I first checked that I followed the accepted answer, confirmed that the Open Type command was mapped correctly and relevant to the perspective I was in.

But... it was still not functioning, apparently because focus was in a javascript file. Clicking out and assigning focus back to the package explorer tab allowed Open Type to work.

Izolaiztaccihuatl answered 9/4, 2015 at 8:27 Comment(1)
Same here. When editing a .js file, Ctrl-Shift-T does not work in Eclipse Mars. I wonder if this is a bug?Susurration
T
1

Although, this is a very old post. But it might be someone get this problem in future.

The above mentioned posts can help in most of the scenarios. But sometimes, even you select the Java/J2EE perspective, but the selected project is not a nature of java/j2ee. And in that case, the Open Type will open but will not search anything. And to fix that you have to make sure, the selected project has the following code in .project file:

<natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
</natures>
Trihedral answered 17/11, 2017 at 2:43 Comment(0)
G
0

you need to make sure that the eclipse window is active in your OS.

Gremial answered 13/10, 2014 at 19:12 Comment(0)
R
0

For people who need to switch focus from JavaScripts every now and then. 1.Go to Window -> Preferences -> General ->Keys .

2.Search for Open type from list .

3.In Description : ensure it's Open a type in a Java editor

In Binding : ctrl + shift + T

when : In Windows 4.Apply.

P.S : IF any duplicates of Open Type please unbind it or restore defaults.

Rosewater answered 13/9, 2016 at 5:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.