if (action != this.action) { if (this.action != null) { this.action.removeOwner(this); this.action.removePropertyChangeListener(actionPropertyChangeListener); if (Objects.equals(this.action.getCaption(), getCaption())) {
if (action != this.action) { if (this.action != null) { this.action.removeOwner(this); this.action.removePropertyChangeListener(actionPropertyChangeListener); if (Objects.equals(this.action.getCaption(), getCaption())) {