Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

How to open or create an image using eclipse-rcp plugin

1.) Create a plugin with Activator class
2.) Check the Activator class, it should extend org.eclipse.ui.plugin.AbstractUIPlugin
In case it extends just Plugin then update it
3.) Add this method at the end of the Activator class

public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
}


You can see the implementation in the AbstractUIPlugin class.
How to open or create an image using eclipse-rcp plugin How to open or create an image using eclipse-rcp plugin Reviewed by Edward Legaspi on Thursday, February 18, 2010 Rating: 5

No comments:

Powered by Blogger.