|Re: DefaultPerspective is not taken into account [message #1728808 is a reply to message #1728778]
||Thu, 07 April 2016 14:10
| Brian de Alwis
Registered: January 2012
Your papyrusSysml.product *file* is specifying the wrong *product* definition (the uid attribute):|
<product name="Papyrus SysML 1.4" uid="org.eclipse.papyrus.sysml14.product" id="org.eclipse.papyrus.sysml14.product" application="org.eclipse.ui.ide.workbench" version="0.8.1.qualifier" useFeatures="true" includeLaunchers="true">
The uid field should specify the product definition (the extension of org.eclipse.core.runtime.products), which is org.eclipse.papyrus.sysml14.rcp.product (the bundle-id + extension id).
The plugin_customization.ini is read from the bundle that provides the product definition. Since you had an invalid product definition, it didn't load the plugin_customization.ini.
The many uses of 'product' in defining all of this metadata is very confusing The way I think of it is:
- The .product file defines the launcher: it provides OS-specific branding and information shown on launch, and lists the features and bundles to be included as the deployed executable package. These definitions have a unique identifier, the ID field in the .product editor's General Information section, which unfortunately corresponds to the uid attribute in the .product file, introducing yet more confusion. This identifier allows referencing the executable definition from a p2 repository.
- The product definition is an extension to org.eclipse.core.runtime.products and describes runtime properties and branding information used during execution. (And unfortunately corresponds to the id attribute in the .product file.)
- Each .product file corresponds to an executable package (a launcher, e.g., a .app bundle in OS X); but an executable package can include multiple product definitions.
So looking at the Eclipse Packaging Project's JEE definition:
- The product ID (the .product file) is 'epp.package.jee'
- The main product definition is 'org.eclipse.epp.package.jee.product' (defined in a bundle org.eclipse.epp.package.jee)
- There are other product definitions included, and a different product definition can be selected on startup using the -product command-line argument. For example, -product org.eclipse.platform.ide.
Hope that helps.
Powered by FUDForum
. Page generated in 0.02031 seconds