Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jastram2012-01-05 11:15:12 +0000
committerMichael Jastram2012-01-05 11:15:12 +0000
commit4cedc35348ace6f220407484bcf4ff785bd654e7 (patch)
treee6a454753840a083b4ecb183d94f1a03c98d932e
parente459b196f139a813d9e586382a54aa2cbca79d1e (diff)
downloadorg.eclipse.rmf-4cedc35348ace6f220407484bcf4ff785bd654e7.tar.gz
org.eclipse.rmf-4cedc35348ace6f220407484bcf4ff785bd654e7.tar.xz
org.eclipse.rmf-4cedc35348ace6f220407484bcf4ff785bd654e7.zip
Allow closing of Spec Editor without saving.
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/SpecificationEditor.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/SpecificationEditor.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/SpecificationEditor.java
index 0e4739d7..fd3e671a 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/SpecificationEditor.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/presentation/SpecificationEditor.java
@@ -340,7 +340,7 @@ public class SpecificationEditor extends EditorPart implements
*/
@Override
public boolean isSaveAsAllowed() {
- return true;
+ return false;
}
/**
@@ -394,4 +394,11 @@ public class SpecificationEditor extends EditorPart implements
prorAgileGridViewer.setShowSpecRelations(checked);
}
+ /**
+ * Only the "Main" Editor ({@link Reqif10Editor}) requires saving.
+ */
+ @Override
+ public boolean isSaveOnCloseNeeded() {
+ return false;
+ }
}

Back to the top