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


Please bear with me as I am new to this.
One of the articles I was reading suggested you create a branding plugin to keep all the branding stuff in so I put all that into the com.mitel.swb
plugin and tend to refer to that as the branding plugin, it has the splash, icons etc, obviously the wrong terminology.

So when the feature asked for a branding plugin I assumed (wrongly) that it wanted that one. So originally two of the features pointed to com.mitel.swb
and one I forgot to fill in. It appears that when the branding plugin is missing from a feature it does not appear in the feature list. Also if no features have
a branding plugin the feature button does not appear. I removed all the branding plugins from the features and exported the product and the feature
button does indeed not appear.

My feature looks like this

<feature
      id="com.mitel.swb.feature"
      label="Sales Workbench Core"
      version="1.0.0"
      provider-name="Mitel Corporation"
      plugin="com.mitel.swb">

<feature
      id="com.mitel.rcp.feature"
      label="Sales Workbench Rich Client"
      version="1.0.0"
      provider-name="Mitel Corporation"
      plugin="com.mitel.rcp">

I notice your feature seems to have the same id as the branding plugin, should they not be different.
<feature
      id="myclient.ui"
      label="%featureName"
      version="1.0.0"
      provider-name="%providerName"
      plugin="myclient.ui"


My third feature contains a single fragment with help for the swb plugin. If I put a branding plugin name in there then it does appear, I also
get a warning from the feature editor saying it can't find the plugin (I assume because its a fragment). If I remove it from the feature then it also disappears
 from the feature  list in help about. Can't win on that one.


My product file looks like this if it is any help

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

<product name="Sales Workbench" id="com.mitel.swb.SalesWorkbench" application="com.mitel.swb.swb" useFeatures="true">

   <aboutInfo>
      <image path="/com.mitel.swb/images/about.gif"/>
      <text>
         Mitel Sales Workbench...
      </text>
   </aboutInfo>

   <configIni use="default"/>

   <launcherArgs>
   </launcherArgs>

   <windowImages small="/com.mitel.swb/images/icon16.gif" large="/com.mitel.swb/images/icon32.gif"/>

   <splash location="com.mitel.swb"/>

   <launcher name="SalesWorkbench">
      <solaris/>
      <win useIco="false">
         <bmp/>
      </win>
   </launcher>

   <plugins>
      <plugin id="org.apache.ant"/>
      <plugin id="org.apache.lucene"/>
      <plugin id="org.eclipse.ant.core"/>
      <plugin id="org.eclipse.core.commands"/>
      <plugin id="org.eclipse.core.expressions"/>
      <plugin id="org.eclipse.core.runtime"/>
      <plugin id="org.eclipse.core.variables"/>
      <plugin id="org.eclipse.help"/>
      <plugin id="org.eclipse.help.appserver"/>
      <plugin id="org.eclipse.help.base"/>
      <plugin id="org.eclipse.help.ui"/>
      <plugin id="org.eclipse.help.webapp"/>
      <plugin id="org.eclipse.jface"/>
      <plugin id="org.eclipse.osgi"/>
      <plugin id="org.eclipse.swt"/>
      <plugin id="org.eclipse.swt.win32.win32.x86"/>
      <plugin id="org.eclipse.tomcat"/>
      <plugin id="org.eclipse.ui"/>
      <plugin id="org.eclipse.ui.forms"/>
      <plugin id="org.eclipse.ui.intro"/>
      <plugin id="org.eclipse.ui.workbench"/>
      <plugin id="swb"/>
   </plugins>

   <features>
      <feature id="com.mitel.rcp.feature" version="1.0.0"/>
      <feature id="com.mitel.swb.feature" version="1.0.0"/>
      <feature id="com.mitel.swb.help.feature" version="1.0.0"/>
   </features>

</product>