Permute labels for EvaluateAction 87/1287/2
Calixte DENIZET [Fri, 9 Jul 2010 11:53:46 +0000 (13:53 +0200)]
Change-Id: I1f5f7a7a790b43f04ae4af9d3ff856cd4696bca4

scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/actions/EvaluateSelectionAction.java

index 9c44b1a..4c46fa4 100644 (file)
@@ -75,9 +75,9 @@ public final class EvaluateSelectionAction extends DefaultAction {
                 public void propertyChange(PropertyChangeEvent e) {
                     String select = editor.getTextPane().getSelectedText();
                     if (select == null) {
-                        menuitem.setText(label1);
-                    } else {
                         menuitem.setText(label2);
+                    } else {
+                        menuitem.setText(label1);
                     }
                 }
             });