Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to make the "Save" button enabled in the eclipse tool bar
How to make the "Save" button enabled in the eclipse tool bar [message #316512] Tue, 12 June 2007 19:40 Go to next message
Eclipse UserFriend
Originally posted by: ku_long.hotmail.com

Hey,

I created an editor which is used to edit the property files
of our projects. I override the isDirty() method, and let
it return true when the content is changed. But I did not see
the "Save" button in the eclipse tool bar was enabled when I
made some changes on the property file in my editor. Should I
do something else to enable the "Save" button?

Thanks.
Re: How to make the "Save" button enabled in the eclipse tool bar [message #316517 is a reply to message #316512] Tue, 12 June 2007 21:03 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Raymond,

You need to call firePropertyChange(IEditorPart.PROP_DIRTY) when you
want Eclipse to check the state again.

Raymond wrote:
> Hey,
>
> I created an editor which is used to edit the property files
> of our projects. I override the isDirty() method, and let it return
> true when the content is changed. But I did not see
> the "Save" button in the eclipse tool bar was enabled when I made some
> changes on the property file in my editor. Should I
> do something else to enable the "Save" button?
>
> Thanks.
>
>
>
>
Previous Topic:How to tell eclipse to open a file
Next Topic:3.3 launcher switches and property inconsistencies
Goto Forum:
  


Current Time: Wed Sep 25 20:51:12 GMT 2024

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

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

Back to the top