1 11 12 package org.eclipse.ant.internal.ui.preferences; 13 14 import java.util.List ; 15 16 public class GlobalClasspathEntries extends AbstractClasspathEntry { 17 private String fName; 18 private int fType; 19 private boolean fCanBeRemoved= true; 20 21 public GlobalClasspathEntries(String name, IClasspathEntry parent, boolean canBeRemoved, int type) { 22 fParent= parent; 23 fName= name; 24 fCanBeRemoved= canBeRemoved; 25 fType= type; 26 } 27 28 public void addEntry(ClasspathEntry entry) { 29 fChildEntries.add(entry); 30 } 31 32 public void removeEntry(ClasspathEntry entry) { 33 fChildEntries.remove(entry); 34 } 35 36 public boolean contains(ClasspathEntry entry) { 37 return fChildEntries.contains(entry); 38 } 39 40 public String toString() { 41 return fName; 42 } 43 44 public void removeAll() { 45 fChildEntries.clear(); 46 } 47 48 public boolean canBeRemoved() { 49 return fCanBeRemoved; 50 } 51 52 56 public void setEntries(List entries) { 57 fChildEntries= entries; 58 } 59 65 public int getType() { 66 return fType; 67 } 68 } 69 | Popular Tags |