FELIX-3861: Set Web Console Category to "OSGi" by overriding the getCategory method.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1490007 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/deppack/changelog.txt b/webconsole-plugins/deppack/changelog.txt
new file mode 100755
index 0000000..e40c368
--- /dev/null
+++ b/webconsole-plugins/deppack/changelog.txt
@@ -0,0 +1,5 @@
+Initial Release 1.0.0
+---------------------
+
+** Improvement
+ * [FELIX-3861] - Set felix.webconsole.category on Web Console plugins
diff --git a/webconsole-plugins/deppack/src/main/java/org/apache/felix/webconsole/plugins/deppack/internal/WebConsolePlugin.java b/webconsole-plugins/deppack/src/main/java/org/apache/felix/webconsole/plugins/deppack/internal/WebConsolePlugin.java
index a758a5b..bdbb14e 100644
--- a/webconsole-plugins/deppack/src/main/java/org/apache/felix/webconsole/plugins/deppack/internal/WebConsolePlugin.java
+++ b/webconsole-plugins/deppack/src/main/java/org/apache/felix/webconsole/plugins/deppack/internal/WebConsolePlugin.java
@@ -46,6 +46,7 @@
private static final String LABEL = "deppack"; //$NON-NLS-1$
private static final String TITLE = "%deppack.pluginTitle"; //$NON-NLS-1$
private static final String CSS[] = { "/" + LABEL + "/res/plugin.css" }; //$NON-NLS-1$ //$NON-NLS-2$
+ private static final String CATEGORY = "OSGi"; //$NON-NLS-1$
//
private static final String ACTION_DEPLOY = "deploydp"; //$NON-NLS-1$
@@ -67,6 +68,11 @@
this.adminTracker = adminTracker;
}
+ public String getCategory()
+ {
+ return CATEGORY;
+ }
+
/**
* @see javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
*/