Skip to main content



      Home
Home » Newcomers » Newcomers » percent symbol in extensions
percent symbol in extensions [message #93737] Wed, 10 August 2005 14:14 Go to next message
Eclipse UserFriend
I have a guess about what the % symbol means (a variable substitution or
wildcard character) when used in the plugin.xml files but I can't tell for
sure. Please help me out. My documentation searches haven't turned up
anything.

In the following XML, what does "%coolName" and "%coolDescription" mean?
(Forgive me if the angle brackets don't get 'quoted' by the posting
software.)

<extension id="coolProduct" point="org.eclipse.core.runtime.products">
<product name="%coolName" application="coolApplication"
description="%coolDescription">
</product>
</extension>

If it's a variable substitution, where would the variable %coolName be
defined?
Re: percent symbol in extensions [message #93752 is a reply to message #93737] Wed, 10 August 2005 14:48 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

These indicate translatable attributes. The attribute name in this case
is taken as a key in looking up a value in the plugin.properties file.
Thuse this plugin will have a plugin.properties file with:

coolName = The Cool Name
coolDescription = This is a cool product

Translations of this plugin can insert language and locale-specified
versions of plugin.properties that provide translations for other
languages. A search in Help for "plugin.properties" will find the page
explaining this in more detail.
--

Jeff Magill wrote:
> I have a guess about what the % symbol means (a variable substitution or
> wildcard character) when used in the plugin.xml files but I can't tell
> for sure. Please help me out. My documentation searches haven't turned
> up anything.
>
> In the following XML, what does "%coolName" and "%coolDescription"
> mean? (Forgive me if the angle brackets don't get 'quoted' by the
> posting software.)
>
> <extension id="coolProduct" point="org.eclipse.core.runtime.products">
> <product name="%coolName" application="coolApplication"
> description="%coolDescription"> </product> </extension>
> If it's a variable substitution, where would the variable %coolName be
> defined?
>
>
>
>
>
>
>
>
Previous Topic:How do you populate the Javadoc view?
Next Topic:Launch and compile
Goto Forum:
  


Current Time: Tue Jul 22 00:51:37 EDT 2025

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

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

Back to the top