コード例 #1
0
 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());
 }
コード例 #2
0
 public void reset() {
   myRunTargetCheckBox.setSelected(myProperties.isEnabled());
   myTarget = myProperties.findTarget(AntConfiguration.getInstance(myProject));
   updateLabel();
 }