problems using default help->about dialog [message #287111] |
Thu, 23 June 2005 23:03  |
Eclipse User |
|
|
|
I am in the early stages of building an RCP application, and I am looking
at the default help->about dialog shown in the mail template example.
This is the example you get when you say File->New->Project->Plugin, and
you click "yes" when asked if this is an RCP. You make the choice to make
a mail template application. Anyway, the help->about dialog in the example
works perfectly, but when I go to implement it, I do not get the graphic
image on the left, or the text on the right. I copied in all the
pertinent files from the example application (the graphics in the root as
well as the icons directory, and the plugin.properties page that defines
aboutText. Then I implemented the plugin extension as done in the example
code. My plugin.xml follows:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="medicalRCP.Application">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
name="MedicalRCP Perspective"
class="medicalRCP.Perspective"
id="MedicalRCP.perspective">
</perspective>
</extension>
<extension
point="org.eclipse.ui.views">
<view
name="View"
allowMultiple="true"
icon="icons/sample2.gif"
class="medicalRCP.View"
id="MedicalRCP.view">
</view>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="MedicalRCP.application"
name="Medical application">
<property
name="aboutText"
value="%aboutText">
</property>
<property
name="windowImages"
value="icons/sample2.gif">
</property>
<property
name="aboutImage"
value="product_lg.gif">
</property>
</product>
</extension>
</plugin>
I was careful to check the names of the files mentioned in the plugin.xml
file, and every time I try this, I get the about item in the help menu,
but the example code says "about RCP Product". RCP PRoduct is the product
name mentioned in the plugin. Mine is named Medical application, but all
I get under the help menu is about. There is no name. When I debug the
code, right off the bat, in the run() method of the Application class, the
working code has a valid entry under Platform.getProduct(). I get null
when I pull product from Platform. I examined all the classes in the
example project, and mine matches in all pertinent respects as far as I
can tell. There are obvious differences in that the example code has
views and actions that are different from mine, but all the startup code
is the same.
Any ideas?
--PK
|
|
|
|
|
|
Re: problems using default help->about dialog [message #287141 is a reply to message #287134] |
Fri, 24 June 2005 11:44  |
Eclipse User |
|
|
|
I hadn't thought to check that, and fortunately Eclipse kept that file
up-to-date for me. I am using 3.1 M7 currently, and will upgrade to the
latest RC soon, but this problem is so "elementary" that I doubt it is a
platform problem. I am fairly sure I am doing something wrong.
At any rate, here is the MANIFEST.MF from the working mail template plugin
example:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MailTemplate Plug-in
Bundle-SymbolicName: MailTemplate; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: MailTemplate.jar
Bundle-Activator: mailTemplate.MailTemplatePlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
Eclipse-AutoStart: true
Here is the MANIFEST.MF from my application:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MedicalRCP Plug-in
Bundle-SymbolicName: MedicalRCP; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: MedicalRCP.jar
Bundle-Activator: medicalRCP.MedicalRCPPlugin
Bundle-Vendor: Pierce Krouse
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Spring_12,
MySQL4_1,
Hibernate_303
Eclipse-AutoStart: true
|
|
|
Powered by
FUDForum. Page generated in 0.03684 seconds