Example #1
0
  public void execute() {
    oldClassName = node.getClassName();
    if (oldClassName != null && MSG_DEFAULT.equals(oldClassName)) {
      executed = false;
      return;
    }

    oldReferenceName = node.getReferenceName();
    node.setClassName(MSG_DEFAULT);
    executed = true;
  }
Example #2
0
  public void undo() {
    if (!executed) return;

    node.setClassName(oldClassName);
    node.setReferenceName(oldReferenceName);
  }