bug 12448: Double click on .sod file tried to open it with Scinotes instead of load it. 45/11045/2
Antoine ELIAS [Wed, 27 Mar 2013 11:02:30 +0000 (12:02 +0100)]
Change-Id: I70e0ad8f72b4f74991cde2d56191e5eb61cdb8a9

scilab/CHANGES_5.4.X
scilab/modules/ui_data/src/java/org/scilab/modules/ui_data/filebrowser/actions/ValidateAction.java

index f4fc4b5..d2ae620 100644 (file)
@@ -602,6 +602,8 @@ Bug fixes
 
 * Bug #12442 fixed - pathconvert() help page was not clear about input arguments.
 
+* Bug #12448 fixed - Double click on .sod file tried to open it with Scinotes instead of load it.
+
 * Bug #12450 fixed - xlfont() did not return font names as specified in the documentation.
 
 
index be12095..d5351ea 100644 (file)
@@ -41,6 +41,7 @@ public class ValidateAction extends CommonCallBack {
         super(null);
         this.table = table;
         ActionMap actions = table.getActionMap();
+        ext.put("", actions.get("open"));
         ext.put("sce", actions.get("scinotes"));
         ext.put("sci", actions.get("scinotes"));
         ext.put("tst", actions.get("scinotes"));
@@ -52,14 +53,8 @@ public class ValidateAction extends CommonCallBack {
         ext.put("bin", actions.get("load"));
         ext.put("scg", actions.get("load"));
         ext.put("sav", actions.get("load"));
+        ext.put("sod", actions.get("load"));
         ext.put("graph", actions.get("graph"));
-        ext.put("pdf", actions.get("open"));
-        ext.put("png", actions.get("open"));
-        ext.put("gif", actions.get("open"));
-        ext.put("jpg", actions.get("open"));
-        ext.put("jpeg", actions.get("open"));
-        ext.put("html", actions.get("open"));
-        ext.put("htm", actions.get("open"));
     }
 
     /**
@@ -77,7 +72,7 @@ public class ValidateAction extends CommonCallBack {
         if (c != null) {
             c.callBack();
         } else {
-            ((CommonCallBack) ext.get("sce")).callBack();
+            ((CommonCallBack) ext.get("")).callBack();
         }
     }
 }