[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Version RCP in About
|
In your main plugin (e.g., the one with the Application class), you need
a couple of extensions defined, as follows:
<extension
id="application"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="<yourPackageName>.Application">
</run>
</application>
</extension>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="<your application ID>"
name="MY RCP program">
<property
name="aboutText"
value="%aboutText"/>
<property
name="aboutImage"
value="about_screen.gif"/>
</product>
</extension>
You can include other properties in this second extension,
preference.ini location, etc.
Then wind up a 'plugin.properties' in this plugin with your About text
that looks like:
aboutText=\n\nMy RCP Application Name\n\
Version: 2.0.23\n\n\
My RCP application will slice bread, make coffee\n\
and is good for the environment.\n\
\n\
(c) Copyright For The Greater Good\
All Rights Reserved.\n
David wrote:
Hi,
I try to get the verion of my RCP product in order to display it in the
Help->About data. I think I have to use a key but I don't know which.
How can I get it?
Thx,
David.