组织导入Eclipse方法 [英] Organise Imports Eclipse Method

查看:119
本文介绍了组织导入Eclipse方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道在eclipse中调用哪个方法,当我按 CTRL + SHIFT + O (整理导入)命令在代码生成后调用它。这个方法的名称和哪里可以找到它(Package.Interface)



谢谢

解决方案

组织导入操作由 org.eclipse.jdt.ui.actions.OrganizeImportsAction 提供,反过来调用 org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation


I need to know which method is called inside eclipse when I press "CTRL+ SHIFT + O" (Organise Imports), in order to invoke it after a code generation. What the name of this method and where can I find it (Package.Interface)

Thanks

解决方案

"Organize Imports" action is contributed by org.eclipse.jdt.ui.actions.OrganizeImportsAction, which, in turn, calls org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation.

这篇关于组织导入Eclipse方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆