Commit 5259cfe1 authored by Tuukka Lehtonen's avatar Tuukka Lehtonen

Change VisualizationDatabaseModelInvalidator to BiConsumer

This was done to allow triggering more incremental cache updates in the
future.

gitlab #106

(cherry picked from commit 956a4672)
parent 8d00156c
......@@ -184,7 +184,7 @@ public class DistrictDiagramViewer extends DiagramViewer {
VisualizationDatabaseModelInvalidator invalidator = Simantics.getSession().peekService(VisualizationDatabaseModelInvalidator.class);
if (invalidator != null)
invalidator.accept(diagramResource);
invalidator.accept(diagramResource, null);
super.dispose();
}
......
package org.simantics.district.network.visualisations;
import java.util.function.Consumer;
import java.util.List;
import java.util.function.BiConsumer;
import org.simantics.db.Resource;
......@@ -10,5 +11,5 @@ import org.simantics.db.Resource;
*
* @author Tuukka Lehtonen
*/
public interface VisualizationDatabaseModelInvalidator extends Consumer<Resource> {
public interface VisualizationDatabaseModelInvalidator extends BiConsumer<Resource, List<Resource>> {
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment