Simplifying fully qualified names in Eclipse

戏子无情 提交于 2019-12-22 04:43:26

问题


Does someone know a plugin for Eclipse that replaces fully qualified Java class names with the simple one and the corresponding import where possible? It would be even better if it could be performed as a Save Action.


回答1:


No. But you can use Add Import command (Ctrl+Shift+M) on each fully qualified identifier to convert it to an import + a short name.




回答2:


Here's a plugin offering this functionality called Clean Qualified Types Plugin (CQTP): http://blog.mi-ernst.de/projekte/



来源:https://stackoverflow.com/questions/2644440/simplifying-fully-qualified-names-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!