GED: Bugfix - Main windown doesn't update the title 21/12721/3
Marcos CARDINOT [Fri, 27 Sep 2013 22:25:09 +0000 (23:25 +0100)]
plot2d()
openged
click on some other object (axes, polyline...)
->title doesn't update

Change-Id: I8b99ccc320f922e7595a229ff005198d58803d8b

scilab/modules/gui/src/java/org/scilab/modules/gui/ged/SwingInspector.java

index 2ee458c..5654a2d 100644 (file)
@@ -55,7 +55,7 @@ public class SwingInspector extends SwingScilabTab {
     * @param objectID Enters the identification of object.
     */
     public SwingInspector(String objectID) {
-        super(MessagesGED.quick_ged, INSPECTORUUID);
+        super(MessagesGED.property_list, INSPECTORUUID);
         instance = this;
 
         setAssociatedXMLIDForHelp("quickged");
@@ -143,6 +143,10 @@ public class SwingInspector extends SwingScilabTab {
         ShowHide.setStatus(false);
         //Insert panel
         pReceive.add(panel, "");
-        instance.setTitle(MessagesGED.property_list + ": " + title);
+        try {
+            instance.setName(MessagesGED.property_list + ": " + title);
+        } catch (NullPointerException e) {
+            instance.setTitle(MessagesGED.property_list + ": " + title);
+        }
     }
 }