The way the icon of RCP is displayed
This problem has been plagued for many days, and finally I couldn't find it. Finally, I thought of it by chance.
The icon of RCP can be displayed in two ways. Both display modes are controlled through configuration files.
1. Plug-in or RCP project, you can create a * .product file
This file provides an interface similar to plugin.xml. It provides the functions of project startup, package export, project personalization and so on. What I like most is its package export function. Some time ago, there was an article about how to deal with dependency packages after upgrade.
Let's talk briefly about this document today.
(1) create a product file, File-> new-> other, and select plug-in Development- > Product configuration
(2) if you use run... If you have started a project in product (non-application) mode, you can select your project in the third item of the interface: Use a launch configuration. If you have an extension point setting for product in plugin.xml, you can select your project in the second item of the interface: Use an existing product. It is suggested that the second item be considered first and then the third item.
(3) if plugin.xml does not have an extension point setting for product, creating a product file will create one in plugin.xml.
/ / corresponds to the class in the project that implements IPlatformRunnable
/ / display text of the about interface, defined in the plugin.properties file
Open the second Product ID of * .product on the overview tab, and you can new, which will add a product extension point setting in plugin.xml. This is not recommended. There is no need to keep more than two product extension point settings in plugin.xml.
Export a project with a product file
In the product file, you can also set the name and icon of the execution file, as follows
The results are as follows:
two。 I am using the second, by binding bind to control the display of the picture.
Eclipse-File_New-Other
Create a plug-in Object project first
Radio display
Select a template, and I choose the style of a view.
This step is the most important, be sure to check, otherwise your plugin.xml will not be displayed even if the image configuration is loaded, because you are not bound.
Define the picture and title name you want in the product tag
Here's the time to witness miracles.