eclipse 使用问题,按F3或者ctrl+click事件时,“current text selection cannot be opened in an editor”
来源:互联网 发布:广东省大数据局级别 编辑:程序博客网 时间:2024/06/06 04:29
众所周知,eclipse 在查看代码时,可以很方便使用 F3 或者 Ctrl+click 可以快速跳转到你想要看的那个函数或者变量;
但我在使用的时候碰到了问题。当前类的变量或者函数可以快速跳转过去,但是跨类调用却跳转不了,此时状态栏弹出提示:“current text selection cannot be opened in an editor”。上网查到了一些解决方法:
方法一:简单粗暴
1.关闭当前编辑页面并重新打开。
2.清理当前工程。project->clean
3.关闭当前工程并重新打开。
4.重启eclipse。
如果上述方法都不奏效,可以试下方法二:
方法二:
1.导出你的eclipse配置文件。File->export->general->preferences->all
2.退出 eclipse。
3.删除或者重命名你的eclipse工作目录下面的 .metadata 目录。可以通过File->switch->other folder 找到你当前的workspace在哪里:
C:\Users\Administrator.iqoo-PC\workspace
4.再一次启动你的eclipse。
5.导入你的eclipses配置文件。
6.再重新导入你之前的所有项目到eclipse中。关于这一条,你可以选择workspace,eclipse会以对话框的形式列出来该workspace下面所有的工程,你可以选择导入需要的工程。
其实这是 eclipse 的一个bug,详情可以参考如下页面。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430605
Bug 430605 - [select] Current text selection cannot be opened in an editor
解决方法参考了该文:
http://stackoverflow.com/questions/18227733/how-do-i-get-rid-of-current-text-selection-cannot-be-opened-in-an-editor-in-ec
我在试方法二的时候成功解决了这个问题。
- eclipse 使用问题,按F3或者ctrl+click事件时,“current text selection cannot be opened in an editor”
- 解决Eclipse中编辑大文件进入scalability模式无法按Ctrl或者F3跳转的问题。
- Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’. P
- Unity5.5.0f3中".bytes"文件出现"Unrecognized assets cannot be included in AssetBundles"问题
- Eclipse上使用arm-xilinx-linux-gnueabi-gcc遇到的The selection cannot be launched的问题
- opened in another editor
- opened in another editor
- VS2010 Opened in another editor
- Prevent text selection after double click
- 解决Eclipse的项目,ctrl+左键(或F3)不能点击超链接问题
- 解决Source Insight拷贝工程时出现的“Warning:XXXXXX does not exist and cannot be opened”问题
- Hibernate mapping resource cannot be opened because it does not exist in a Spring + Hibernate Maven
- 关于使用android Eclipse按ctrl+鼠标左键或者F5出现source not found的问题如何解决
- deffactory.dat cannot be opened 解决方案
- deffactory.dat cannot be opened 解决方案
- deffactory.dat cannot be opened解决方案
- cannot be opened because the project file cannot be parsed
- cannot be opened because the project file cannot be parsed
- POJ 2420 A Star not a Tree? (爬山法||模拟退火)
- JQuery按照form上传文件+asp.net后台处理(三)
- Selenium2(webdirver)入门之四常见问题(Java版)
- 关于Android的.so文件你所需要知道的
- context
- eclipse 使用问题,按F3或者ctrl+click事件时,“current text selection cannot be opened in an editor”
- Ehcache详细解读
- Redis几个认识误区(3)
- Localizing Property List Values:对在Info.plist文件要显示的文字进行国际化(APP的名字或者quick action(shortItem)的文字)
- Android第三方QQ登录无限授权
- linux权限 study
- TCP协议摘要(二) 常见问题
- 10.23至10.29之所学
- 集合框架的工具类----Collections