开发者

In Eclipse, why doesn't "Show In" appear for non-Java files?

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 开发者_JS百科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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜