summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
2be99ce)
gitlab #11
Change-Id: I7d5a2c1f462c6de3c401288420350e25f650147f
import org.simantics.utils.datastructures.Pair;
public class UpdateList {
import org.simantics.utils.datastructures.Pair;
public class UpdateList {
- private HashSet<PropertyChange> changes;
+ private List<PropertyChange> changes;
- changes = new HashSet<>();
+ changes = new ArrayList<>();
}
public UpdateList(Collection<PropertyChange> changes) {
}
public UpdateList(Collection<PropertyChange> changes) {
- this.changes = new HashSet<>(changes);
+ this.changes = new ArrayList<>(changes);
}
public UpdateList(GraphChanges graphChanges, Collection<Modification> coll) {
}
public UpdateList(GraphChanges graphChanges, Collection<Modification> coll) {
- this.changes = new HashSet<>();
+ this.changes = new ArrayList<>();
for (Modification p : coll) {
for (Modification p : coll) {
- changes.add(create(graphChanges, p.getLeftSub(),p.getRightSub(),new Pair<Statement, Statement>(p.getLeftStm(), p.getRightStm())));
+ addChange(create(graphChanges, p.getLeftSub(),p.getRightSub(),new Pair<Statement, Statement>(p.getLeftStm(), p.getRightStm())));
}
public void addChange(PropertyChange change) {
}
public void addChange(PropertyChange change) {
+ if (!changes.contains(change))
+ changes.add(change);
}
public void removeChange(PropertyChange change) {
}
public void removeChange(PropertyChange change) {