1.引用Ecilpse共享图片。示例代码如下:
PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_PROJECT);
2.引用plugin目录下图片资源:
AbstractUIPlugin.imageDescriptorFromPlugin("information.editor","icons/full/ico_form").createImage();
1.引用Ecilpse共享图片。示例代码如下:
PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_OBJ_PROJECT);
2.引用plugin目录下图片资源:
AbstractUIPlugin.imageDescriptorFromPlugin("information.editor","icons/full/ico_form").createImage();
转载于:https://www.cnblogs.com/fanshuchuan/archive/2008/10/29/1321850.html