commit | 5a42bad667ebd297852a79faf431d6add898ba2f | [log] [tgz] |
---|---|---|
author | kchong <kchong> | Wed Apr 19 20:28:52 2006 +0000 |
committer | kchong <kchong> | Wed Apr 19 20:28:52 2006 +0000 |
tree | 957d0d74049de402606afd076e684cf9212acde7 | |
parent | 3fab7d53925f0e65f36979c6f6a2cb2953b4aeb9 [diff] |
[no bug] Fix isDirty logic
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/InternalXSDMultiPageEditor.java b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/InternalXSDMultiPageEditor.java index b189129..b10388c 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/InternalXSDMultiPageEditor.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-adt-xsd/org/eclipse/wst/xsd/ui/internal/editor/InternalXSDMultiPageEditor.java
@@ -551,18 +551,6 @@ } /** - * Returns <code>true</code> if the command stack is dirty - * - * @see org.eclipse.ui.ISaveablePart#isDirty() - */ - public boolean isDirty() - { - super.isDirty(); - return structuredTextEditor.isDirty() || getCommandStack().isDirty(); - } - - - /** * Listener on SSE's outline page's selections that converts DOM selections * into xsd selections and notifies XSD selection manager */
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/editor/CommonMultiPageEditor.java b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/editor/CommonMultiPageEditor.java index 8e1891e..cc6bd84 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/editor/CommonMultiPageEditor.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-adt/org/eclipse/wst/xsd/ui/internal/adt/editor/CommonMultiPageEditor.java
@@ -363,9 +363,10 @@ */ public boolean isDirty() { - super.isDirty(); - // TODO: rmah: Or do we need to tell the CommandStack that a save has occurred? - return getCommandStack().isDirty(); + if (getCommandStack().isDirty()) + return true; + else + return super.isDirty(); } public StructuredTextEditor getTextEditor()