]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Apply profile style only for added / removed items 56/4456/2
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 15 Sep 2020 12:30:31 +0000 (15:30 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 6 Oct 2020 22:05:53 +0000 (22:05 +0000)
gitlab #605

Change-Id: Ic94aed406c05afef5fc1caf92d1efd39571fcd57

bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/common/ObserverGroupListener.java

index 31295b9b692f60178c422ad7dda719089d87b76c..10e2abe67fb1f347ce8cc91dcf9553d9abc7c529 100644 (file)
@@ -44,7 +44,7 @@ public class ObserverGroupListener implements SetListener<Resource> {
     public void add(Resource item) {
         //System.out.println("Add to group(" + this + "): " + item);
         items.put(item, item);
-        observer.update();
+        observer.update(style, item);
     }
 
     @Override
@@ -52,7 +52,7 @@ public class ObserverGroupListener implements SetListener<Resource> {
 //        new Exception().printStackTrace();
         //System.out.println("Remove from group(" + this + "): " + item);
         items.remove(item);
-        observer.update();
+        observer.update(style, item);
     }
 
     @Override