]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.structural2/src/org/simantics/structural2/utils/StructuralChangeVisitor.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / utils / StructuralChangeVisitor.java
1 package org.simantics.structural2.utils;
2
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.Resource;
5 import org.simantics.db.exception.DatabaseException;
6
7 public interface StructuralChangeVisitor {
8
9     /**
10      * This method is called for components when
11      * <ul>
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>
16      * </ul>
17      * Flag {@code onlySubstructureChanged} is false, if only the children of the component are removed.
18      */
19     void visitComponentChange(ReadGraph graph, Resource component, boolean componentItselfModified) throws DatabaseException;
20
21 }