[eclipse] Open type (Ctrl-Shift-T)找不到类
2012-04-12 00:00
459 查看
有时(我极少遇到),通过ctrl + shift + t找对应的类时,类明明存在,并且也在编译路径下,但就是查找不到,一个可能的原因就是eclipse为类建立的索引出了问题。
解决的方法是:找到项目所在工作空间下的.metadata/.plugins/org.eclipse.jdt.core文件夹,将里面的*.index文件和savedIndexNames.txt文件删除,重启eclipse,然后eclipse会重建索引,这时问题就可以解决了。
解决方法来自这里: http://www.java-forums.org/eclipse/6513-open-type-ctrl-shift-t-does-not-find-types.html
Sometimes, the indexes that Eclipse use for searching the types, get corrupted. You can clear the Open Type indexes by going to <Workspace>/.metadata/.plugins/org.eclipse.jdt.core and deleting all files there. The indexes will be re-built the next time you use open type.
Note that this is a empirical observation, and you may delete some JDT saved data that you don't want to delete. I observed no ill effects, but for safety you could try deleting just the *.index files and the "savedIndexNames.txt", and see if it works.
解决的方法是:找到项目所在工作空间下的.metadata/.plugins/org.eclipse.jdt.core文件夹,将里面的*.index文件和savedIndexNames.txt文件删除,重启eclipse,然后eclipse会重建索引,这时问题就可以解决了。
解决方法来自这里: http://www.java-forums.org/eclipse/6513-open-type-ctrl-shift-t-does-not-find-types.html
Sometimes, the indexes that Eclipse use for searching the types, get corrupted. You can clear the Open Type indexes by going to <Workspace>/.metadata/.plugins/org.eclipse.jdt.core and deleting all files there. The indexes will be re-built the next time you use open type.
Note that this is a empirical observation, and you may delete some JDT saved data that you don't want to delete. I observed no ill effects, but for safety you could try deleting just the *.index files and the "savedIndexNames.txt", and see if it works.
相关文章推荐
- [eclipse] Open type (Ctrl-Shift-T)找不到类
- [eclipse] Open type (Ctrl-Shift-T)找不到类
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- Eclipse中,Open Type(Ctrl+Shift+T)失效后做法。
- eclipse 格式化快捷键 ctrl+shift+f
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- eclipse debug ctrl+shift+i查看表达式的值
- Eclipse常用快捷键之ctrl+shift+t
- eclipse 的快捷键 ctrl + shift + O 还挺好使
- eclipse 中 按 ctrl+shift+f 格式化代码时,每行容纳的字符数
- #eclipse导入项目报错(两种错误:红色叹号,红色叉号)+ xml配置文件(光标任意位置)注释一行 快捷键:ctrl+shift+C
- Eclipse自动导入所有相关的java包的快捷键是:“Ctrl+Shift+O”
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- eclipse 修改设置Ctrl+Shift+F长度
- eclipse快捷键 ctrl+shift+o配置失效
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法
- Eclipse ctrl+shift+r
- eclipse中格式化代码快捷键Ctrl+Shift+F失效的解决办法