Java and Eclipse Plugin Development
Java, Eclipse Plugin Development and best software development practices
Friday, January 3, 2014
Reading an icon from icons folder in eclipse plugin project
To access an icon from your plugin project /icons folder, you can use below code.
Image addImage = AbstractUIPlugin.imageDescriptorFromPlugin(MyPluginActivator.PLUGIN_ID,"$nl$/icons/add.gif").createImage();
MyPluginProject
--src
--icons
-add.gif
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment