Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » cannot make a Static reference to the non-static field
cannot make a Static reference to the non-static field [message #661131] Wed, 23 March 2011 10:23 Go to next message
Master_k83  is currently offline Master_k83 Friend
Messages: 9
Registered: March 2011
Junior Member
Hi ppl,


i have this Problem When i switch to RAP :
cannot make a Static reference to the non-static field
example:IDialogConstants.CANCEL_LABEL

is there a work around or something ...
thx for your help
Re: cannot make a Static reference to the non-static field [message #661136 is a reply to message #661131] Wed, 23 March 2011 10:49 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Master_k83,
use IDialogConstants.get().CANCEL_LABEL instead.
HTH,
Ivan

On 3/23/2011 12:23 PM, Master_k83 wrote:
> Hi ppl,
>
>
> i have this Problem When i switch to RAP :
> cannot make a Static reference to the non-static field
> example:IDialogConstants.CANCEL_LABEL
>
> is there a work around or something ...
> thx for your help
Re: cannot make a Static reference to the non-static field [message #661138 is a reply to message #661136] Wed, 23 March 2011 10:54 Go to previous messageGo to next message
Master_k83  is currently offline Master_k83 Friend
Messages: 9
Registered: March 2011
Junior Member


thx evan,
works, but does it work both ways.. RCP and RAP
Re: cannot make a Static reference to the non-static field [message #661141 is a reply to message #661138] Wed, 23 March 2011 10:58 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Master_k83,
no... because RAP should return a localized message, based on current
session locale.
Best,
Ivan

On 3/23/2011 12:54 PM, Master_k83 wrote:
>
>
> thx evan,
> works, but does it work both ways.. RCP and RAP
Re: cannot make a Static reference to the non-static field [message #661160 is a reply to message #661138] Wed, 23 March 2011 11:59 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
since RCP 3.7 M5 and RAP 1.4 M6 (or even M5?) there is common API to
solve the problem with IDialogConstants.

Details can be found here
300472: [Dialogs] [JFace] Provide accessor for dialog messages
https://bugs.eclipse.org/bugs/show_bug.cgi?id=300472
and in
JavaDoc for IDialogLabelKeys

HTH
Rüdiger

On 23.03.2011 11:54, Master_k83 wrote:
>
>
> thx evan,
> works, but does it work both ways.. RCP and RAP
Previous Topic:Problem integrating contextual help
Next Topic:RAP web application with native look and feel on iPad?
Goto Forum:
  


Current Time: Tue Oct 19 13:28:58 GMT 2021

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

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

Back to the top