You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2013/11/03 14:06:30 UTC

svn commit: r1538355 - /felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java

Author: fmeschbe
Date: Sun Nov  3 13:06:29 2013
New Revision: 1538355

URL: http://svn.apache.org/r1538355
Log:
FELIX-3861 Assign the plugin to the "OSGi" category

Modified:
    felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java

Modified: felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java?rev=1538355&r1=1538354&r2=1538355&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java (original)
+++ felix/trunk/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java Sun Nov  3 13:06:29 2013
@@ -35,10 +35,11 @@ import org.apache.felix.webconsole.WebCo
  * This class provides a plugin for rendering the available OSGi Bundle Repositories
  * and the resources they provide.
  */
-class WebConsolePlugin extends SimpleWebConsolePlugin 
+class WebConsolePlugin extends SimpleWebConsolePlugin
 {
     private static final String LABEL = "obr"; //$NON-NLS-1$
     private static final String TITLE = "%obr.pluginTitle"; //$NON-NLS-1$
+    private static final String CATEGORY = "OSGi"; //$NON-NLS-1$
     private static final String CSS[] = { "/" + LABEL + "/res/plugin.css" }; //$NON-NLS-1$ //$NON-NLS-2$
 
     // templates
@@ -59,6 +60,12 @@ class WebConsolePlugin extends SimpleWeb
     }
 
 
+    public String getCategory()
+    {
+        return CATEGORY;
+    }
+
+
     /**
      * @see org.apache.felix.webconsole.SimpleWebConsolePlugin#deactivate()
      */
@@ -216,7 +223,7 @@ class WebConsolePlugin extends SimpleWeb
                 {
                     String k = ( String ) e.nextElement();
                     String v = request.getParameter( k );
-                    if ( v != null && v.length() > 0 
+                    if ( v != null && v.length() > 0
                         && !"details".equals( k )  //$NON-NLS-1$
                         && !"deploy".equals( k ) //$NON-NLS-1$
                         && !"deploystart".equals( k )  //$NON-NLS-1$