store RunConfig<->AntTarget associations inside RunManager
[fedora-idea.git] / lang-api / src / com / intellij / execution / BeforeRunTask.java
blob9dc201d66ad06fabe37c6d0b27a62563b7162db6
1 package com.intellij.execution;
3 import org.jdom.Element;
5 /**
6 * @author Eugene Zhuravlev
7 * Date: May 18, 2009
8 */
9 public abstract class BeforeRunTask implements Cloneable{
10 private boolean myIsEnabled;
12 public boolean isEnabled() {
13 return myIsEnabled;
16 public void setEnabled(boolean isEnabled) {
17 myIsEnabled = isEnabled;
20 public void writeExternal(Element element) {
21 element.setAttribute("enabled", String.valueOf(myIsEnabled));
24 public void readExternal(Element element) {
25 myIsEnabled = Boolean.valueOf(element.getAttributeValue("enabled")).booleanValue();
28 public BeforeRunTask clone() {
29 try {
30 return (BeforeRunTask)super.clone();
32 catch (CloneNotSupportedException ignored) {
33 return null;