摘要: Eclipse插件开发中遇到的一些异常总结Eclipse插件开发涉及到的方面很广,有时候遇到一些奇怪的错误也很多,以下是我在Eclipse插件开发中遇到一些特别异常后的一些解决方法,这些一些是来自网上搜索到的,一些是自己的总结。这篇随笔将会做为我的积累不断地更新,也希望能帮到一些遇到相同问题的coder们!1."org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID: package.class"处理方法报错原因:plugin.xml中<extension>标签中没有i 阅读全文
posted @ 2013-01-28 13:54 rhino 阅读(8602) 评论(0) 推荐(0)
摘要: 对话框居中的3种方法:1.int width = shell.getMonitor().getClientArea().width;int height = shell.getMonitor().getClientArea().height;int x = shell.getSize().x;int y = shell.getSize().y;if (x > width) { shell.getSize().x = width;}if (y > height) { shell.getSize().y = height;}shell.setLocation((width - x) / 阅读全文
posted @ 2013-01-28 09:27 rhino 阅读(4520) 评论(0) 推荐(0)