felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1021362 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Date Mon, 11 Oct 2010 14:49:36 GMT
Author: cziegeler
Date: Mon Oct 11 14:49:36 2010
New Revision: 1021362

URL: http://svn.apache.org/viewvc?rev=1021362&view=rev
Log:
FELIX-2650 :  ConfigurationPrinter with other modes than web should be excluded from web

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java?rev=1021362&r1=1021361&r2=1021362&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Mon Oct 11 14:49:36 2010
@@ -227,9 +227,12 @@ public class ConfigurationRender extends
         for (Iterator i = printers.iterator(); i.hasNext();)
         {
             final PrinterDesc desc = (PrinterDesc) i.next();
-            final String label = desc.label;
-            final String title = desc.title;
-            pw.print("<li><a href='" + pluginRoot + label + ".nfo'>" + title
+ "</a></li>" );
+            if ( desc.match(ConfigurationPrinter.MODE_WEB) )
+            {
+                final String label = desc.label;
+                final String title = desc.title;
+                pw.print("<li><a href='" + pluginRoot + label + ".nfo'>" + title
+ "</a></li>" );
+            }
         }
         pw.println("</ul> <!-- end tabs on top -->");
         pw.println();



Mime
View raw message