How to Create or Open an Image in Eclipse Rcp

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.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source

Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.

Explore NERV on GitHub →