Skip to content

Commit

Permalink
Fix #329 Impossible to rename an Operator filter
Browse files Browse the repository at this point in the history
  • Loading branch information
eduramiba committed Aug 20, 2017
1 parent 8cad2f2 commit 087e6ef
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public class OperatorQueryImpl extends AbstractQueryImpl {
private final Operator operator;
private boolean simple = false; //Simple when children are only NodeFilter/EdgeFilter leaves

private String customName = null;

public OperatorQueryImpl(Operator predicate) {
this.operator = (Operator) predicate;
}
Expand All @@ -65,11 +67,15 @@ public int getChildrenSlotsCount() {

@Override
public String getName() {
if (customName != null) {
return customName;
}
return operator.getName();
}

@Override
public void setName(String name) {
customName = name;
}

@Override
Expand Down

0 comments on commit 087e6ef

Please sign in to comment.