[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: RCP Simple Questions

The %categoryName will look for a value in a .properties file e.g.

categoryName=Some value.

The properties files can be internationalized by the standard nameing convention. If you have a file name myPrps.properties it will be the default file used. Then you can add languages as follows:

myProps_EN.properties
myProps_FR.properties
myProps_ES.properties

You need to give a command line argument to startup your app to use the appropriate file. I don't recall the format offhand. I'm sure you can change this at runtime as well.


Gama Franco wrote:
Hello,

I'm developing an RCP application, and I have two simple questions.

In several tutorials I've noticed that some entries have the value of the attribute 'name' starting with a '%'.

For example:

<category name="%categoryName"
id="org.eclipse.ui.tutorials.part1.viewCategory"
/>


I suppose this has something to do with i18n, but I don't know how it works.

Question number two is a bit more complicated. I've made a wizard that helps the user in the creation of a database connection. I would like to make the wizard available at the entry File->New. I don't know which extension point should I use. Currently I'm using point="org.eclipse.ui.newWizards", and the wizard becomes available at File->Others instead of File->New.

Thanks in advance,
Gama Franco


--
View in EZ forum: http://www.eclipsezone.com/eclipse/forums/m91954560.html