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 apply() {
   myProperties.setEnabled(myRunTargetCheckBox.isSelected());
   if (myTarget != null) {
     final VirtualFile file = myTarget.getModel().getBuildFile().getVirtualFile();
     if (file != null) {
       myProperties.setFileUrl(file.getUrl());
       myProperties.setTargetName(myTarget.getName());
       return;
     }
   }
   myProperties.setFileUrl(null);
   myProperties.setTargetName(null);
 }
 public void reset() {
   myRunTargetCheckBox.setSelected(myProperties.isEnabled());
   myTarget = myProperties.findTarget(AntConfiguration.getInstance(myProject));
   updateLabel();
 }