Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Why "File"->"Revert" menu item always disable
Why "File"->"Revert" menu item always disable [message #289626] Tue, 09 August 2005 12:11 Go to next message
zhang wei is currently offline zhang weiFriend
Messages: 84
Registered: July 2009
Member
Hi all,

I found if I use TextEditor to open a file, then press any key
to let the editor dirty, then I click right mouse button, the
"File" menu->"Revert" menu item is enable.

My editor is extended TextEditor.
But in my editor, the "File" menu->"Revert" menu item always disable.

My editor's code only has a constructor.
Where is wrong ?

THX
Re: Why "File"->"Revert" menu item always disable [message #290265 is a reply to message #289626] Mon, 22 August 2005 14:53 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

wei zhang wrote:

> Hi all,
>
> I found if I use TextEditor to open a file, then press any key to let
> the editor dirty, then I click right mouse button, the "File"
> menu->"Revert" menu item is enable.
>
> My editor is extended TextEditor.
> But in my editor, the "File" menu->"Revert" menu item always disable.
>
> My editor's code only has a constructor.
> Where is wrong ?

Maybe the code in your constructor prevents the editor from being
correctly created? Does it work if you have just the constructor without
any code?

Dani

>
> THX
>
Previous Topic:Opening external file
Next Topic:modal MessageDialog
Goto Forum:
  


Current Time: Thu Apr 25 18:52:39 GMT 2024

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

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

Back to the top