ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1310310 - in /ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component: ArtifactsPanel.java BaseObjectPanel.java DistributionsPanel.java FeaturesPanel.java
Date Fri, 06 Apr 2012 12:58:17 GMT
Author: jawi
Date: Fri Apr  6 12:58:16 2012
New Revision: 1310310

URL: http://svn.apache.org/viewvc?rev=1310310&view=rev
Log:
ACE-248: fixed some last update-bugs introduced by a prior commit.

Modified:
    ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/ArtifactsPanel.java
    ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/BaseObjectPanel.java
    ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/DistributionsPanel.java
    ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/FeaturesPanel.java

Modified: ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/ArtifactsPanel.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/ArtifactsPanel.java?rev=1310310&r1=1310309&r2=1310310&view=diff
==============================================================================
--- ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/ArtifactsPanel.java
(original)
+++ ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/ArtifactsPanel.java
Fri Apr  6 12:58:16 2012
@@ -63,7 +63,8 @@ public abstract class ArtifactsPanel ext
     /**
      * {@inheritDoc}
      */
-    protected void handleEvent(String topic, ArtifactObject artifact, org.osgi.service.event.Event
event) {
+    protected void handleEvent(String topic, RepositoryObject entity, org.osgi.service.event.Event
event) {
+        ArtifactObject artifact = (ArtifactObject) entity;
         if (ArtifactObject.TOPIC_ADDED.equals(topic)) {
             add(artifact);
         }

Modified: ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/BaseObjectPanel.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/BaseObjectPanel.java?rev=1310310&r1=1310309&r2=1310310&view=diff
==============================================================================
--- ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/BaseObjectPanel.java
(original)
+++ ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/BaseObjectPanel.java
Fri Apr  6 12:58:16 2012
@@ -505,9 +505,7 @@ abstract class BaseObjectPanel<REPO_OBJ 
      * 
      * @see org.osgi.service.event.EventHandler#handleEvent(org.osgi.service.event.Event)
      */
-    protected void handleEvent(String topic, RepositoryObject entity, org.osgi.service.event.Event
event) {
-        // Nop...
-    }
+    protected abstract void handleEvent(String topic, RepositoryObject entity, org.osgi.service.event.Event
event);
 
     /**
      * Returns whether the given {@link RepositoryObject} can be handled by this panel.

Modified: ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/DistributionsPanel.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/DistributionsPanel.java?rev=1310310&r1=1310309&r2=1310310&view=diff
==============================================================================
--- ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/DistributionsPanel.java
(original)
+++ ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/DistributionsPanel.java
Fri Apr  6 12:58:16 2012
@@ -77,7 +77,8 @@ public abstract class DistributionsPanel
     /**
      * {@inheritDoc}
      */
-    protected void handleEvent(String topic, DistributionObject distribution, org.osgi.service.event.Event
event) {
+    protected void handleEvent(String topic, RepositoryObject entity, org.osgi.service.event.Event
event) {
+        DistributionObject distribution = (DistributionObject) entity;
         if (DistributionObject.TOPIC_ADDED.equals(topic)) {
             add(distribution);
         }

Modified: ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/FeaturesPanel.java
URL: http://svn.apache.org/viewvc/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/FeaturesPanel.java?rev=1310310&r1=1310309&r2=1310310&view=diff
==============================================================================
--- ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/FeaturesPanel.java
(original)
+++ ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/component/FeaturesPanel.java
Fri Apr  6 12:58:16 2012
@@ -76,7 +76,8 @@ public abstract class FeaturesPanel exte
     /**
      * {@inheritDoc}
      */
-    protected void handleEvent(String topic, FeatureObject feature, org.osgi.service.event.Event
event) {
+    protected void handleEvent(String topic, RepositoryObject entity, org.osgi.service.event.Event
event) {
+        FeatureObject feature = (FeatureObject) entity;
         if (FeatureObject.TOPIC_ADDED.equals(topic)) {
             add(feature);
         }



Mime
View raw message