FELIX-3861 Assign the plugin to the "OSGi" category
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1538355 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java b/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java
index c80a88c..ef1b85b 100644
--- a/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java
+++ b/webconsole-plugins/obr/src/main/java/org/apache/felix/webconsole/plugins/obr/internal/WebConsolePlugin.java
@@ -35,10 +35,11 @@
* 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 @@
}
+ public String getCategory()
+ {
+ return CATEGORY;
+ }
+
+
/**
* @see org.apache.felix.webconsole.SimpleWebConsolePlugin#deactivate()
*/
@@ -216,7 +223,7 @@
{
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$