English 中文(简体)
In Eclipse, why doesn t "Show In" appear for non-Java files?
原标题:
  • 时间:2009-11-13 18:39:01
  •  标签:
  • java
  • eclipse

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator.

If I have an *xml, *jsp, or pretty much anything besides a Java source file, that option doesn t appear. Is there any way to get it to appear, or any similar functionality that will let me jump immediately to the correct folder in Navigator?

最佳回答

You can use the link with editor button on the Navigator view. It forces the Navigator view to change to whatever file the active editor has open. If you click a different editor or open a resource/type, it will update the Navigator at the same time.

On my version of Eclipse (3.4.2), it looks like two arrows, one above the other. The top one points left and the bottom one points right. The fly-over helptext on my Eclipse reads Link with editor . The same button appears in the Project Explorer as well. I m pretty sure the button has been there since before version 3.

问题回答

I m using Eclipse Platform Version: 3.4.2 (Build id: M20090211-1700) and works fine for all kind of files.

Is that "other" file a part of your project? Because it most certainly works for me on both XML and JSP (and many others).





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签