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