[eclipse] Open type (Ctrl-Shift-T)找不到类
来源:互联网 发布:Knn算法预测天气预报 编辑:程序博客网 时间:2024/06/04 18:54
转自:《http://www.eoeandroid.com/blog-91715-5053.html》
有时(我极少遇到),通过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.
- [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+T 快捷键:类名,方法名搜索
- Eclipse常用快捷键之ctrl+shift+t
- 找不到eclipse的open type
- CTRL +SHIFT+T 失效
- Eclipse中ctrl+shift+r与ctrl+shift+t的区别
- Eclipse中ctrl+shift+r与ctrl+shift+t的区别[转]
- Eclipse中ctrl+shift+r与ctrl+shift+t的区别
- Eclipse中ctrl+shift+r与ctrl+shift+t的区别
- Eclipse Ctrl+Shift+T(OpenType)快捷鍵不好用问题
- Eclipse ctrl+shift+r
- ctrl+shift+T 、ctrl+shift+R的区别
- 【Eclipse】Ctrl+Shift+L 快捷键
- eclipse中的 ctrl + shift + F
- 站点首页设计
- 技术39
- 用find和rm命令来批量删除文件
- SQL Server 2005-同步复制技术:发布、订阅
- http协议简介
- [eclipse] Open type (Ctrl-Shift-T)找不到类
- HDU 3328 Flipper (stack)
- JAVA生活例子
- Oracle递归查询示例分析
- concurrentMap
- 在UILable上添加点击事件
- eclipse升级后Android使用JAR报错
- C#入门经典—第七章
- Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds