[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Enabling Save menu item for custom editor
|
The save action is only enabled when IEditorPart.isDirty() returns true,
and it must be notified that the dirty state has changed.
The isDirty() to return true if (and only if) there are unsaved changes.
When the dirty state changes, call firePropertyChange (on WorkbenchPart)
with IEditorPart.PROP_DIRTY.
Be sure to reset the dirty state and notify when you do a save or save as.