Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JFaceResources and button labels
JFaceResources and button labels [message #413956] Thu, 30 July 2009 09:34 Go to next message
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
Hi,

in some code you can see things like

button.setText(JFaceResources.getString("openChange"));

which looks like a very good idea to me (having common button labels
makes the ui better).

But I cannot find any list of keys that are set up by default. Is there
even such a list or is it a side-effect that the above snippet works?

regards

Christoph
Re: JFaceResources and button labels [message #423009 is a reply to message #413956] Thu, 30 July 2009 12:43 Go to previous messageGo to next message
Remo Loetscher is currently offline Remo LoetscherFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Christoph,

You'll find the keys in the messages.properties file in the
"org.eclipse.jface" package in the org.eclipse.jface bundle.

remsy

Christoph Höger wrote:
> Hi,
>
> in some code you can see things like
>
> button.setText(JFaceResources.getString("openChange"));
>
> which looks like a very good idea to me (having common button labels
> makes the ui better).
>
> But I cannot find any list of keys that are set up by default. Is there
> even such a list or is it a side-effect that the above snippet works?
>
> regards
>
> Christoph
Re: JFaceResources and button labels [message #427808 is a reply to message #423009] Thu, 30 July 2009 14:10 Go to previous message
Christoph Höger is currently offline Christoph HögerFriend
Messages: 40
Registered: July 2009
Member
excellent, thanks!

Am 30.07.2009 14:43, schrieb Remo Loetscher:
> Hi Christoph,
>
> You'll find the keys in the messages.properties file in the
> "org.eclipse.jface" package in the org.eclipse.jface bundle.
>
> remsy
>
> Christoph Höger wrote:
>> Hi,
>>
>> in some code you can see things like
>>
>> button.setText(JFaceResources.getString("openChange"));
>>
>> which looks like a very good idea to me (having common button labels
>> makes the ui better).
>>
>> But I cannot find any list of keys that are set up by default. Is
>> there even such a list or is it a side-effect that the above snippet
>> works?
>>
>> regards
>>
>> Christoph
Previous Topic:Open resource in Project Explorer
Next Topic:Not found localfile_1_0_0 on AIX
Goto Forum:
  


Current Time: Thu Apr 18 02:52:14 GMT 2024

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

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

Back to the top