[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Pb. getting translated values of extension point from a fragment
|
Hello,
I found a strange (to me) behavior of the externalized extension attributes
for fragments.
Here is the story:
I have an attribute value defined in an extension point as a translatable
string name="%my.key".
When getting the attribute value with
getConfigurationElement().getAttribute("name"), the result is:
- The correct string is returned if the element is defined in either
plugin.xml or fragment.xml and the key in plugin.properties
- The key value is returned (no property file found I guess) if the element
is defined in fragment.xml and the key in fragment.properties
I don't understand how to merge the plugin and fragment properties when the
values not are defined in plugin.properties.
I looked at the help for locale specific files and read the online article
about internationalization.
Note that the PDE fragment editor provides correct display of the overview
items i reference in fragment.properties
(like %fragment.name) but only shows key values for extensions.
This is not the case of the plugin manifest editor, so i conclude that only
the plugin.properties file is examined by the
extension mechanism.
I also tried to place a plugin.properties file in the fragment directory
without success.
This behavior exhibits with the 2.1 M4-M5 builds, not tested with 2.0.
Any idea?
--
Christophe