摘要: GMF有提供保存图片的功能,但有时我们想自己在其他地方添加菜单,然后调用GMF的保存图片的代码,实现保存图片的功能。可这样做: CopyToImageDialog dialog = new CopyToImageDialog(Display.getCurrent().getActiveShell(),path, fileName); if (dialog.open() == CopyToImageDialog.CANCEL) { return; } if (!overwriteExisting()) { return; } ... 阅读全文
posted @ 2012-03-22 21:41 supermmao 阅读(266) 评论(0) 推荐(0) 编辑