]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.profile/src/org/simantics/scenegraph/profile/Style.java
Fixed ProfileObserver.update race with multiple query threads
[simantics/platform.git] / bundles / org.simantics.scenegraph.profile / src / org / simantics / scenegraph / profile / Style.java
index d18e623d049eda44b5e7b113024741f22233544e..4eecce9fc09d33421c8779968f4daec6c715fb00 100644 (file)
@@ -13,6 +13,7 @@ package org.simantics.scenegraph.profile;
 
 import org.simantics.db.RequestProcessor;
 import org.simantics.db.Resource;
+import org.simantics.db.exception.DatabaseException;
 
 /**
  * This interface is not intended to be implemented directly. Extend
@@ -36,7 +37,7 @@ public interface Style {
      * @param group
      * @param observer
      */
-    void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer);
+    void activate(RequestProcessor backend, Resource runtimeDiagram, Resource entry, Group group, EvaluationContext observer) throws DatabaseException;
 
     /**
      * Deactivates this style. Intended to stop tracking the currently tracked
@@ -65,5 +66,8 @@ public interface Style {
      * @param observer profile system observer for this canvas context
      */
     void apply(Resource entry, Group group, EvaluationContext observer);
-
+    
+    void apply2(Object item, EvaluationContext observer);
+    void setPriority(double priority);
+    double getPriority();
 }