geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r371981 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java
Date Tue, 24 Jan 2006 18:55:27 GMT
Author: sppatel
Date: Tue Jan 24 10:55:24 2006
New Revision: 371981

URL: http://svn.apache.org/viewcvs?rev=371981&view=rev
Log:
fix saving issue

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java?rev=371981&r1=371980&r2=371981&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java
(original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.ui/src/org/apache/geronimo/ui/editors/AbstractGeronimoDeploymentPlanEditor.java
Tue Jan 24 10:55:24 2006
@@ -15,6 +15,7 @@
  */
 package org.apache.geronimo.ui.editors;
 
+import java.io.IOException;
 import java.io.InputStream;
 import java.util.ArrayList;
 import java.util.Collections;
@@ -53,9 +54,11 @@
 		try {
 			IEditorInput input = getEditorInput();
 			if (input instanceof IFileEditorInput) {
-				if (deploymentPlan != null && getActiveEditor() == null) {
-					deploymentPlan.eResource().save(Collections.EMPTY_MAP);
-					commitFormPages(true);
+				if (deploymentPlan != null) {
+					saveEditors();
+				}
+
+				if (getActiveEditor() == null) {
 					editorDirtyStateChanged();
 				} else {
 					getActiveEditor().doSave(monitor);
@@ -80,6 +83,11 @@
 				// do nothing
 			}
 		}
+	}
+
+	private void saveEditors() throws IOException {
+		deploymentPlan.eResource().save(Collections.EMPTY_MAP);
+		commitFormPages(true);
 	}
 
 	/*



Mime
View raw message