protected Pair<Statement, Statement> pair;
protected boolean applied = false;
protected boolean selected = false;
protected boolean visible = true;
protected Pair<Statement, Statement> pair;
protected boolean applied = false;
protected boolean selected = false;
protected boolean visible = true;
- public PropertyChange(GraphChanges changes, Statement first, Statement second) {
+ public PropertyChange(GraphChanges changes, Resource left, Statement first, Resource right, Statement second) {
if (first == null && second == null)
throw new IllegalArgumentException("At least one of the stamenents must be non null.");
if (first == null && second == null)
throw new IllegalArgumentException("At least one of the stamenents must be non null.");
- public PropertyChange(GraphChanges changes, Pair<Statement, Statement> change) {
+ public PropertyChange(GraphChanges changes, Resource left, Resource right, Pair<Statement, Statement> change) {
if (change == null || (change.first == null && change.second == null))
throw new IllegalArgumentException("At least one of the stamenents must be non null.");
if (change == null || (change.first == null && change.second == null))
throw new IllegalArgumentException("At least one of the stamenents must be non null.");
//Resource s = pair.first.getSubject();
Resource pred = pair.second.getPredicate();
if (graph.hasValue(pair.second.getObject())) {
//Resource s = pair.first.getSubject();
Resource pred = pair.second.getPredicate();
if (graph.hasValue(pair.second.getObject())) {
- s += " (" + (pair.first.getSubject()) + " , " + pair.first.getPredicate() + " , " + pair.first.getObject() + ")";
+ s += " (" + (leftSubject) + " , " + pair.first.getPredicate() + " , " + pair.first.getObject() + ")";
- s += " (" + (pair.second.getSubject()) + " , " + pair.second.getPredicate() + " , " + pair.second.getObject() + ")";
+ s += " (" + (rightSubject) + " , " + pair.second.getPredicate() + " , " + pair.second.getObject() + ")";