making the SearchAction works 76/16976/2
Marcos CARDINOT [Fri, 17 Jul 2015 18:07:09 +0000 (15:07 -0300)]
Change-Id: Ib23b5ca4e762838853bc2793346dbb2644674c4b

scilab/modules/xcos/src/java/org/scilab/modules/xcos/palette/actions/SearchAction.java

index 0deb3f2..d97ba08 100644 (file)
@@ -25,6 +25,7 @@ import javax.swing.JTextField;
 import org.scilab.modules.commons.gui.FindIconHelper;
 import org.scilab.modules.commons.gui.ScilabLAF;
 import org.scilab.modules.gui.events.callback.CommonCallBack;
+import org.scilab.modules.xcos.palette.view.PaletteManagerView;
 import org.scilab.modules.xcos.utils.XcosMessages;
 
 /**
@@ -102,7 +103,9 @@ public class SearchAction extends CommonCallBack {
      * @param e ActionEvent
      */
     public void actionPerformed(ActionEvent e) {
-        // TODO
+        if (!txtSearch.getText().isEmpty()) {
+            PaletteManagerView.get().getSearchManager().search(txtSearch.getText());
+        }
     }
 
     @Override