简体   繁体   English

Eclipse重构方法(特别是提取方法)已停止工作

[英]Eclipse refactoring methods (specifically extract method) have stopped working

I have been using eclipse indigo happily for android development for a while. 一段时间以来,我一直在愉快地使用eclipse indigo进行android开发。 In the last few days it has stopped refactoring. 在过去的几天中,它已停止重构。 I have tried a project clean and of course restarting eclipse. 我已经尝试过清洁项目,并且当然要重新启动Eclipse。

I have also tried renaming the org.eclipse.core.resources directory as suggested here: - 我还尝试过按以下建议重命名org.eclipse.core.resources目录:-

http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/

Any ideas what I could do? 有什么想法我可以做什么? Thanks! 谢谢!

I get this occasionally. 我偶尔会收到这个。 It usually happens when you install (or update) and plugin and that plugin has a key binding the same as alt-shift-m (or cmd-alt-m on OSX). 通常在安装(或更新)插件时,该插件具有与alt-shift-m(或OSX上的cmd-alt-m)相同的键绑定。 You need to go into your eclipse preferences and change the key bindings. 您需要进入Eclipse偏好设置并更改键绑定。

Under preferences go to General -> Keys. 在首选项下,转到常规->键。 Then search for the shortcut in the bindings field. 然后在绑定字段中搜索快捷方式。 You will need to delete the binding and add your preferred one back in. 您将需要删除绑定,然后再添加首选绑定。

It has now randomly started working again. 现在它已经随机开始再次工作。 If I find the reason I'll post it here for googlers! 如果找到原因,我会在这里张贴给Google员工!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM