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

Change VisualizationDatabaseModelInvalidator to BiConsumer

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

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, null);
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