How to make the "Save" button enabled in the eclipse tool bar [message #316512] |
Tue, 12 June 2007 19:40 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03596 seconds