Search engine - removing 'TODO' + force font size on the search bar 92/16992/3
Marcos CARDINOT [Mon, 3 Aug 2015 14:01:00 +0000 (11:01 -0300)]
Change-Id: I66db4252caf3adf8f7afcde1ee256bc8bb183339

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

index c8391ea..3035f65 100644 (file)
@@ -61,10 +61,6 @@ public final class PaletteSearcher {
             TopDocs results  = searcher.search(query, XcosConstants.MAX_HITS);
             ScoreDoc[] hits = results.scoreDocs;
 
-            // TODO show results on the search view
-            int numTotalHits = results.totalHits;
-            System.out.println(numTotalHits + " total matching documents");
-
             for (int i = 0; i < hits.length; i++) {
                 Document doc = searcher.doc(hits[i].doc);
                 blockPaths.add(doc.get("treePath") + File.separator + doc.get("blockName"));
index d97ba08..3d3305e 100644 (file)
@@ -14,6 +14,7 @@ package org.scilab.modules.xcos.palette.actions;
 
 import java.awt.Dimension;
 import java.awt.FlowLayout;
+import java.awt.Font;
 import java.awt.event.ActionEvent;
 import java.lang.reflect.InvocationTargetException;
 
@@ -60,6 +61,7 @@ public class SearchAction extends CommonCallBack {
 
         txtSearch = new JTextField();
         txtSearch.setPreferredSize(new Dimension(150, 22));
+        txtSearch.setFont(new Font("SansSerif", Font.PLAIN, 10));
         searchBar.add(txtSearch);
 
         btnSearch = new JButton();