[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Features and the AboutDialog...

Peter Manahan wrote:
It obviously not clear. The feature "branding" plugin is a plugin that is used to "brand" the feature (ie icon, name etc in the about ). This is not product branding which also can add content to the about for the "product". The only way to get content loaded at runtime is via a plugin (so you can use fragments for localization etc). So for features to show up in the about dialog they need a plugin to host that information.

I normally just create a plugin with the same id as the feature which by default becomes the branding plugin for that feature. But if you don't want to do that you can put the feature branding information in a plugin with a different id and then use the "plugin=" attribute of the feature.

I **assume** that I walked the second way: My fragment looks like:

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="myclient.ui"
      label="%featureName"
      version="1.0.0"
      provider-name="%providerName"
      plugin="myclient.ui"
      os="win32"
      ws="win32">
...

my plugin containing splash.bmp, .product file, plugin_customization.ini, about.mappings, which I called the "branding plugin" looks like that:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %plugin-name
Bundle-SymbolicName: myclient.ui; singleton:=true

and the .product file, based on features now:

<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.1"?>

<product name="%product-name" id="myclient.ui.ide" application="myclient.ui.that_app" useFeatures="true">
...


   <features>
      <feature id="myclient.ui" version="1.0.0"/>
   </features>

</product>


So do you think, that this method is invalid? (I noticed, that the same technique was used in the org.eclipse.rcp feature, where (branding) plugin and id are the same), see:

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="org.eclipse.rcp"
      label="%featureName"
      version="3.1.1"
      provider-name="%providerName"
      plugin="org.eclipse.rcp"
      image="eclipse_update_120.jpg">


Thanks for your interest,

Daniel