1 11 package org.eclipse.ant.internal.ui.views.elements; 12 13 import java.util.ArrayList ; 14 import java.util.List ; 15 16 17 20 public class TargetNode extends AntNode { 21 private List dependencies= new ArrayList (); 22 private boolean isErrorNode= false; 23 24 31 public TargetNode(String name, String description) { 32 super(name); 33 setDescription(description); 34 } 35 36 41 public void addDependency(String dependency) { 42 dependencies.add(dependency); 43 } 44 45 52 public String [] getDependencies() { 53 return (String []) dependencies.toArray(new String [dependencies.size()]); 54 } 55 56 62 public ProjectNode getProject() { 63 return (ProjectNode) getParent(); 64 } 65 66 71 public void setIsErrorNode(boolean isErrorNode) { 72 this.isErrorNode= isErrorNode; 73 } 74 75 80 public boolean isErrorNode() { 81 return isErrorNode; 82 } 83 } 84 | Popular Tags |