1 package org.simantics.structural2.utils;
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.exception.DatabaseException;
7 public interface StructuralChangeVisitor {
10 * This method is called for components when
12 * <li>They are created</li>
13 * <li>Their children are removed</li>
14 * <li>Their properties are changed</li>
15 * <li>Their connections are modified</li>
17 * Flag {@code onlySubstructureChanged} is false, if only the children of the component are removed.
19 void visitComponentChange(ReadGraph graph, Resource component, boolean componentItselfModified) throws DatabaseException;