public boolean isModified() { if (myProperties.isEnabled() != myRunTargetCheckBox.isSelected()) return true; if (myTarget == null) { return myProperties.getFileUrl() != null; } if (!Comparing.equal(myTarget.getName(), myProperties.getTargetName())) return true; final VirtualFile file = myTarget.getModel().getBuildFile().getVirtualFile(); return file != null && !Comparing.equal(file.getUrl(), myProperties.getFileUrl()); }
public void reset() { myRunTargetCheckBox.setSelected(myProperties.isEnabled()); myTarget = myProperties.findTarget(AntConfiguration.getInstance(myProject)); updateLabel(); }