You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2009/09/24 17:05:55 UTC
svn commit: r818508 - in /felix/trunk/webconsole-plugins/event/src/main:
java/org/apache/felix/webconsole/plugins/event/internal/Activator.java
java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java
resources/res/ui/events.css
Author: cziegeler
Date: Thu Sep 24 15:05:54 2009
New Revision: 818508
URL: http://svn.apache.org/viewvc?rev=818508&view=rev
Log:
#1607 - Add css support.
Added:
felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css (with props)
Modified:
felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/Activator.java
felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java
Modified: felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/Activator.java?rev=818508&r1=818507&r2=818508&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/Activator.java (original)
+++ felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/Activator.java Thu Sep 24 15:05:54 2009
@@ -60,6 +60,7 @@
props.put( Constants.SERVICE_VENDOR, "The Apache Software Foundation" );
props.put( "felix.webconsole.label", "events");
props.put( "felix.webconsole.title", "Events");
+ props.put( "felix.webconsole.css", "/events/res/ui/events.css");
this.pluginRegistration = context.registerService(Servlet.class.getName(),
plugin,
props);
Modified: felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java?rev=818508&r1=818507&r2=818508&view=diff
==============================================================================
--- felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java (original)
+++ felix/trunk/webconsole-plugins/event/src/main/java/org/apache/felix/webconsole/plugins/event/internal/PluginServlet.java Thu Sep 24 15:05:54 2009
@@ -180,9 +180,9 @@
public URL getResource(String path)
{
- if ( "/events/res/ui/events.js".equals(path) )
+ if ( path.startsWith("/events/res/ui/") )
{
- return this.getClass().getResource("/res/ui/events.js");
+ return this.getClass().getResource(path.substring(7));
}
return null;
}
Added: felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css?rev=818508&view=auto
==============================================================================
--- felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css (added)
+++ felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css Thu Sep 24 15:05:54 2009
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+.eventservice {
+ background-color: #ADFF2F;
+}
+.eventbundle {
+ background-color: #FFCACD;
+}
+.eventframework {
+ background-color: #DCDCDC;
+}
+.eventconfig {
+ background-color: #FFD700;
+}
\ No newline at end of file
Propchange: felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css
------------------------------------------------------------------------------
svn:keywords = Id
Propchange: felix/trunk/webconsole-plugins/event/src/main/resources/res/ui/events.css
------------------------------------------------------------------------------
svn:mime-type = text/plain