plugin.properties mechanism not working? [message #559718] |
Fri, 17 September 2010 12:51  |
Eclipse User |
|
|
|
I want to display text from an external file (possibly internationalized) in the about box of an RCP application.
Apparently (as intensive Googling has led me to believe) one can achieve this by adding a (or changing the) property "aboutText" with a value that has a prefix '%' that will be dereferenced from the plugin.properties file, like this:
plugin.xml:
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="com.example.application"
name="RCP Product">
<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.properties:
aboutText=This is HelloWorld\n\
\n\
Version 1.0
1. I used the "new Plug-In Project" to generate the RCP Mail Application.
2. I changed the value of the "aboutText" property to "%aboutText".
3. I added a file plugin.properties as above.
4. When I run the product and open the About Box, the text "%aboutText" is shown instead of the expected dereferenced text from the plugin.properties file.
I tried this with a vanilla 3.5.1 Eclipse IDE as well as a more featured Yoxos-based 3.6 installation, with the same results.
I also tried it with a separate "something.product" file, which didn't help.
=====
Is my expectation about the behaviour wrong?
Or can someone confirm that they see this behaviour, and that this may perhaps be a bug in Eclipse (RCP/PDE/...?)?
Or does going through the above steps work for you?
Thanks for reading this far,
Nicolai Czempin
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03916 seconds