Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
index a566dd59a..1b7c4fdaf 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
@@ -205,6 +205,30 @@ public abstract class AbstractSection extends SectionPart implements IAdaptable,
}
/* (non-Javadoc)
+ * @see org.eclipse.ui.forms.AbstractFormPart#commit(boolean)
+ */
+ @Override
+ public void commit(boolean onSave) {
+ // commit is reseting the dirty state
+ boolean hasBeenDirty = isDirty();
+ super.commit(onSave);
+ if (hasBeenDirty) getManagedForm().dirtyStateChanged();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.ui.forms.AbstractFormPart#refresh()
+ */
+ @Override
+ public void refresh() {
+ // refresh is reseting both the stale and the dirty state
+ boolean hasBeenStale = isStale();
+ boolean hasBeenDirty = isDirty();
+ super.refresh();
+ if (hasBeenStale) getManagedForm().staleStateChanged();
+ if (hasBeenDirty) getManagedForm().dirtyStateChanged();
+ }
+
+ /* (non-Javadoc)
* @see org.eclipse.tcf.te.ui.jface.interfaces.IValidatable#isValid()
*/
@Override

Back to the top