Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » discouraged access to GEF messages
discouraged access to GEF messages [message #237933] Wed, 15 August 2007 14:31 Go to next message
Eclipse UserFriend
Originally posted by: alexandre.magillem.com

Hi all,
in my GEF editor, I use an actionbarcontributor as in the logic example.
When I use :

addRetargetAction(new RetargetAction(
GEFActionConstants.TOGGLE_RULER_VISIBILITY,
GEFMessages.ToggleRulerVisibility_Label,
IAction.AS_CHECK_BOX));

I get an annoying warning message :
Discouraged access: The type GEFMessages is not accessible due to
restriction on required library /Applications/eclipse
3.2/plugins/org.eclipse.gef_3.2.2.v20070208.jar

Does this mean that I'm not using the right way to access this messages ?

Regards.
Christophe
Re: discouraged access to GEF messages [message #237939 is a reply to message #237933] Wed, 15 August 2007 14:59 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Christophe,

GEFMessages is in an internal class and Eclipse is telling you that you
should not be using internal classes.

Most users define their own strings in this case.

Cheers...
Anthony

"Christophe Alexandre" <alexandre@magillem.com> wrote in message
news:f9v2p1$tu4$1@build.eclipse.org...
> Hi all,
> in my GEF editor, I use an actionbarcontributor as in the logic example.
> When I use :
>
> addRetargetAction(new RetargetAction(
> GEFActionConstants.TOGGLE_RULER_VISIBILITY,
> GEFMessages.ToggleRulerVisibility_Label,
> IAction.AS_CHECK_BOX));
>
> I get an annoying warning message :
> Discouraged access: The type GEFMessages is not accessible due to
> restriction on required library /Applications/eclipse
> 3.2/plugins/org.eclipse.gef_3.2.2.v20070208.jar
>
> Does this mean that I'm not using the right way to access this messages ?
>
> Regards.
> Christophe
Re: discouraged access to GEF messages [message #237945 is a reply to message #237933] Wed, 15 August 2007 15:58 Go to previous message
Eclipse UserFriend
Originally posted by: aczerwonka.3esi.com

Just use your own messages.

"Christophe Alexandre" <alexandre@magillem.com> wrote in message
news:f9v2p1$tu4$1@build.eclipse.org...
> Hi all,
> in my GEF editor, I use an actionbarcontributor as in the logic example.
> When I use :
>
> addRetargetAction(new RetargetAction(
> GEFActionConstants.TOGGLE_RULER_VISIBILITY,
> GEFMessages.ToggleRulerVisibility_Label,
> IAction.AS_CHECK_BOX));
>
> I get an annoying warning message :
> Discouraged access: The type GEFMessages is not accessible due to
> restriction on required library /Applications/eclipse
> 3.2/plugins/org.eclipse.gef_3.2.2.v20070208.jar
>
> Does this mean that I'm not using the right way to access this messages ?
>
> Regards.
> Christophe
Previous Topic:antialiasing glibally in draw2d
Next Topic:Using DirectedGraphLayout in GEF - do i need my own custom layout manager?
Goto Forum:
  


Current Time: Fri Mar 29 01:44:33 GMT 2024

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

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

Back to the top