@Test public void validate() throws Throwable { AbstractOperationPM op = util.createAbstractOperation(); op.getValidator().add(new ValidationRule() { public ValidationState validate() { return new ValidationState("give up"); } }); assertEquals("op.isEnabled()", false, op.isEnabled()); }
public boolean isEnabled() { return this.isValid(); }
AbstractOperationPM extends AbstractPM implements IOperationPM { public boolean isEnabled() { return this.isValid(); } }
AbstractOperationPM extends AbstractPM implements IOperationPM { public boolean isEnabled() { return this.isValid(); } protected  AbstractOperationPM(); }
AbstractOperationPM extends AbstractPM implements IOperationPM { public boolean isEnabled() { return this.isValid(); } protected  AbstractOperationPM(); void setIcon(Icon newIcon); Icon getIcon(); void setIconUrl(URL url); String getTitle(); void setTitle(String title); String getDescription(); void setDescription(String description); abstract boolean execute(); boolean isEnabled(); void check(); }
AbstractOperationPM extends AbstractPM implements IOperationPM { public boolean isEnabled() { return this.isValid(); } protected  AbstractOperationPM(); void setIcon(Icon newIcon); Icon getIcon(); void setIconUrl(URL url); String getTitle(); void setTitle(String title); String getDescription(); void setDescription(String description); abstract boolean execute(); boolean isEnabled(); void check();  }