What is the product identifier in the Eclipse plugin?

it says that the product identifier must be set "as defined in your plugin manifest."

What does it mean? Does this product identifier match the plugin identifier? But this may not be true, since the product may contain many plugins.

How to specify a product in the plugin manifest?

UPDATE

When editing a product file using the Eclipse editor, I have 2 places to define the product

enter image description here

In the upper field, apparently, I can enter whatever I want. The bottom field, apparently, refers to the extension of the β€œproduct” of some plug-in, which allows you to create new ones by button.

What is the connection between these two places?

+7
eclipse eclipse-plugin eclipse-rcp
source share
2 answers

In your plugin, you define a product using the org.eclipse.core.runtime.products extension point - something like:

 <extension id="product" point="org.eclipse.core.runtime.products"> <product name="%product.name" application="org.eclipse.e4.ui.workbench.swt.E4Application"> .. more ... 

The product identifier is the plugin identifier plus the value of the id attribute, so something like pluginid.product . This is what you specify in the product configuration. The product configuration editor should show you this identifier in the list of available products.

Update: I did not see a good explanation of what the id field in the product file means, maybe something is related to the p2 installation code. I have seen discussions that say they can cause errors if they correspond to other identifiers. Using a unique identifier works.

+3
source share

What does it mean? Does this product identifier match the plugin identifier?

Not. The product identifier and the plugin identifier are different. In this product, each plugin must have a unique identifier. The Plugin / Loader Platform identifies these plugins by identifier.

Refer to these links

Product Overview

Product configuration

How to specify a product in the plugin manifest?

The manifest plugin may or may not refer to any products. But any plugin can read product information through the org.eclipse.core.runtime.products extension point.

Refer to image enter image description here

+3
source share

All Articles