highlight parameter added

This commit is contained in:
Honfika
2013-08-25 15:17:58 +02:00
parent 1f6d2f0056
commit d1a0c1d463
218 changed files with 622 additions and 621 deletions
@@ -33,14 +33,14 @@ public abstract class UnaryOpItem extends GraphTargetItem implements UnaryOp {
}
@Override
public String toString(List<Object> localData) {
String s = (value == null ? "null" : value.toString(localData));
public String toString(boolean highlight, List<Object> localData) {
String s = (value == null ? "null" : value.toString(highlight, localData));
if (value != null) {
if (value.precedence > precedence) {
s = "(" + s + ")";
}
}
return hilight(operator) + s;
return hilight(operator, highlight) + s;
}
@Override