Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » plugin.properties mechanism not working?
plugin.properties mechanism not working? [message #559718] Fri, 17 September 2010 16:51 Go to next message
Nicolai Czempin is currently offline Nicolai CzempinFriend
Messages: 21
Registered: July 2009
Junior Member
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
Re: plugin.properties mechanism not working? [message #644803 is a reply to message #559718] Tue, 14 December 2010 09:49 Go to previous messageGo to next message
Juergen Weber is currently offline Juergen WeberFriend
Messages: 56
Registered: July 2009
Member
Try to put
Bundle-Localization: plugin
into MANIFEST.MF in the plugin editor.
Re: plugin.properties mechanism not working? [message #644813 is a reply to message #644803] Tue, 14 December 2010 10:14 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 419
Registered: July 2009
Senior Member

and don't forget to include the file in the build.properties
Re: plugin.properties mechanism not working? [message #644825 is a reply to message #644813] Tue, 14 December 2010 10:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6398
Registered: July 2009
Senior Member
or put your file in the default location OSGI-INF/l10n/bundle.properties
and naturally as Wim said don't forget to add it to the build.properties

Tom

Am 14.12.10 11:14, schrieb Wim Jongman:
> and don't forget to include the file in the build.properties
Re: plugin.properties mechanism not working? [message #1060086 is a reply to message #644803] Thu, 23 May 2013 03:31 Go to previous messageGo to next message
hunt jesse is currently offline hunt jesseFriend
Messages: 1
Registered: May 2013
Junior Member
Juergen Weber wrote on Tue, 14 December 2010 04:49
Try to put
Bundle-Localization: plugin
into MANIFEST.MF in the plugin editor.

Juergen's answer is right








Re: plugin.properties mechanism not working? [message #1790568 is a reply to message #1060086] Wed, 13 June 2018 06:20 Go to previous message
Divya R is currently offline Divya RFriend
Messages: 3
Registered: November 2017
Junior Member
Thanks for the suggestion. This worked !
Previous Topic:Switch Perspective E4 + Compatibility Layer
Next Topic:RCP with Python Editor using pydev
Goto Forum:
  


Current Time: Mon Jun 25 10:27:49 GMT 2018

Powered by FUDForum. Page generated in 0.02439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top