1 11 package org.eclipse.core.internal.boot; 12 13 import org.eclipse.core.boot.IPlatformConfiguration.ISitePolicy; 14 import org.eclipse.update.configurator.IPlatformConfiguration; 15 16 public class SitePolicy implements ISitePolicy { 17 private IPlatformConfiguration.ISitePolicy newPolicy; 18 19 public SitePolicy(IPlatformConfiguration.ISitePolicy policy) { 20 newPolicy = policy; 21 } 22 23 public int getType() { 24 return newPolicy.getType(); 25 } 26 27 public String [] getList() { 28 return newPolicy.getList(); 29 } 30 31 public void setList(String [] list) { 32 newPolicy.setList(list); 33 } 34 35 public IPlatformConfiguration.ISitePolicy getNewPolicy() { 36 return newPolicy; 37 } 38 39 public boolean equals(Object o) { 40 if (o instanceof SitePolicy) 41 return newPolicy.equals(((SitePolicy) o).newPolicy); 42 return false; 43 } 44 45 public int hashCode() { 46 return newPolicy.hashCode(); 47 } 48 } 49 | Popular Tags |