Author: ssanbern
Date: 2007-09-24 16:44:30 +0200 (Mon, 24 Sep 2007)
New Revision: 5794

Modified:
   
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/SearchTabFactory.java
Log:
new view.xml attribute: always-visible

Modified: 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/SearchTabFactory.java
===================================================================
--- 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/SearchTabFactory.java
      2007-09-24 14:43:33 UTC (rev 5793)
+++ 
branches/2.15/view-config-spi/src/main/java/no/sesat/search/view/SearchTabFactory.java
      2007-09-24 14:44:30 UTC (rev 5794)
@@ -344,8 +344,10 @@
                     final int threshold = 
parseInt(e.getAttribute("threshold"), 0);
                     final float weight = parseFloat(e.getAttribute("weight"), 
0);
                     final String command = e.getAttribute("command");
+                    final boolean alwaysvisible = 
parseBoolean(e.getAttribute("always-visable"),false);
+                    
                     final SearchTab.EnrichmentHint enrichment
-                            = new SearchTab.EnrichmentHint(rule, baseScore, 
threshold, weight, command);
+                            = new SearchTab.EnrichmentHint(rule, baseScore, 
threshold, weight, command, alwaysvisible);
                     enrichments.add(enrichment);
                 }
 

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to