1 11 package org.eclipse.ant.internal.ui.preferences; 12 13 import java.net.URL ; 14 import java.util.ArrayList ; 15 import java.util.List ; 16 17 import org.eclipse.ant.core.IAntClasspathEntry; 18 19 public abstract class AbstractClasspathEntry implements IClasspathEntry { 20 21 protected List fChildEntries = new ArrayList (); 22 protected IClasspathEntry fParent = null; 23 24 27 public IAntClasspathEntry[] getEntries() { 28 return (IAntClasspathEntry[])fChildEntries.toArray(new IAntClasspathEntry[fChildEntries.size()]); 29 } 30 31 34 public boolean hasEntries() { 35 return !fChildEntries.isEmpty(); 36 } 37 38 41 public IClasspathEntry getParent() { 42 return fParent; 43 } 44 45 48 public void setParent(IClasspathEntry parent) { 49 fParent = parent; 50 } 51 52 55 public URL getEntryURL() { 56 return null; 57 } 58 59 62 public String getLabel() { 63 return toString(); 64 } 65 66 69 public boolean isEclipseRuntimeRequired() { 70 return false; 71 } 72 } 73 | Popular Tags |