@Override public String getLabel() { if (label != null) { return label; } if (object != null) { return object.toString(); } return super.getLabel(); }
@Override public boolean matches(IUndoContext context) { // Check first for explicit matches that have been assigned. if (children.contains(context)) { return true; } // Contexts for equal objects are considered matching if (context instanceof ObjectUndoContext && getObject() != null) { return getObject().equals(((ObjectUndoContext)context).getObject()); } // Use the normal matching implementation return super.matches(context); }
@Override public boolean matches(IUndoContext context) { // Check first for explicit matches that have been assigned. if (children.contains(context)) { return true; } // Contexts for equal objects are considered matching if (context instanceof ObjectUndoContext && getObject() != null) { return getObject().equals(((ObjectUndoContext)context).getObject()); } // Use the normal matching implementation return super.matches(context); }
@Override public String getLabel() { if (label != null) { return label; } if (object != null) { return object.toString(); } return super.getLabel(); }
@Override public boolean matches(IUndoContext context) { // Check first for explicit matches that have been assigned. if (children.contains(context)) { return true; } // Contexts for equal objects are considered matching if (context instanceof ObjectUndoContext && getObject() != null) { return getObject().equals(((ObjectUndoContext)context).getObject()); } // Use the normal matching implementation return super.matches(context); }
@Override public String getLabel() { if (label != null) { return label; } if (object != null) { return object.toString(); } return super.getLabel(); }