Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » why access to org.eclipse.ui.internal is discouraged?(RT)
why access to org.eclipse.ui.internal is discouraged? [message #549137] Sun, 25 July 2010 05:14 Go to next message
cn.fred is currently offline cn.fredFriend
Messages: 27
Registered: July 2010
Location: China
Junior Member
how to avoid such warning:
Access to referenced class 'org.eclipse.ui.internal.handlers.QuitHandler' in attribute 'defaultHandler' is discouraged
Re: why access to org.eclipse.ui.internal is discouraged? [message #549206 is a reply to message #549137] Mon, 26 July 2010 06:10 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 25.07.2010 07:14, FanGuogang wrote:
> how to avoid such warning:
> Access to referenced class
> 'org.eclipse.ui.internal.handlers.QuitHandler' in attribute
> 'defaultHandler' is discouraged

It would probably help, if you would describe the context,
where this warning occurred. With the absence of such a
description I can only ask: Why do you refer to a type that
is an implementation detail of Eclipse and no official API?

Greetings from Bremen,

Daniel Krügler
Re: why access to org.eclipse.ui.internal is discouraged? [message #549207 is a reply to message #549137] Mon, 26 July 2010 06:21 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
FanGuogang wrote:
> how to avoid such warning:
> Access to referenced class
> 'org.eclipse.ui.internal.handlers.QuitHandler' in attribute
> 'defaultHandler' is discouraged
Don't use internal code as this can change at any time without notice.

Dani
Re: why access to org.eclipse.ui.internal is discouraged? [message #549309 is a reply to message #549137] Mon, 26 July 2010 12:39 Go to previous messageGo to next message
cn.fred is currently offline cn.fredFriend
Messages: 27
Registered: July 2010
Location: China
Junior Member
that's it ! in plugin.xml of a RCP project
org.eclipse.ui.internal.handlers.QuitHandler
I use it to create "File->Exit" menu Sad

what can i use instead of this QuitHandler?

I know I can do it in code, but I wanna if there is a safe way to add a "File->Exit" command extension in plugin.xml?

Re: why access to org.eclipse.ui.internal is discouraged? [message #549603 is a reply to message #549309] Tue, 27 July 2010 11:02 Go to previous message
cn.fred is currently offline cn.fredFriend
Messages: 27
Registered: July 2010
Location: China
Junior Member
haha~
stupid to create a command with defaultHandler point to a internal Handler.
Previous Topic:Discard last session state on a condition
Next Topic:RCP Application on AIX/Motif
Goto Forum:
  


Current Time: Fri Apr 19 18:03:43 GMT 2024

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

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

Back to the top