Commit 63dbdd6e authored by Robert Smith's avatar Robert Smith
Browse files

Fixed CSV Plot Editor's dirty state



The CSV Plot Editor no longer erroneously reports itself as dirty when
viewing the graph when only the text editor has unsaved changes.
Signed-off-by: Robert Smith's avatarRobert Smith <SmithRW@ornl.gov>
parent f5cb839e
......@@ -318,6 +318,21 @@ public class PlotEditor extends MultiPageEditorPart {
setInput(input);
}
/*
* (non-Javadoc)
* @see org.eclipse.ui.part.MultiPageEditorPart#pageChange(int)
*/
@Override
protected void pageChange(int newPageIndex){
super.pageChange(newPageIndex);
//After changing the page, force a check on the editor's
//dirty state. This means that it is impossible to save on
//the graph page, which is not editable and thus not
//saveable.
firePropertyChange(IEditorPart.PROP_DIRTY);
}
/*
* (non-Javadoc)
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment