1 11 package org.eclipse.update.core; 12 import java.net.*; 13 14 import org.eclipse.core.runtime.*; 15 import org.eclipse.update.configuration.*; 16 import org.eclipse.update.core.model.*; 17 18 36 public interface ISite extends IAdaptable { 37 38 46 public static final String DEFAULT_INSTALLED_FEATURE_TYPE = "org.eclipse.update.core.installed"; 48 56 public static final String DEFAULT_PACKAGED_FEATURE_TYPE = "org.eclipse.update.core.packaged"; 58 64 public static final int SITE_ACCESS_EXCEPTION = 42; 65 66 72 public URL getURL(); 73 74 82 public String getType(); 83 84 90 public IURLEntry getDescription(); 91 92 98 public ICategory[] getCategories(); 99 100 107 public ICategory getCategory(String name); 108 109 115 public ISiteFeatureReference[] getFeatureReferences(); 116 117 124 public ISiteFeatureReference[] getRawFeatureReferences(); 125 126 137 public ISiteFeatureReference getFeatureReference(IFeature feature); 138 139 149 public IArchiveReference[] getArchives(); 150 151 162 public ISiteContentProvider getSiteContentProvider() throws CoreException; 163 164 171 public String getDefaultPackagedFeatureType(); 172 173 180 public IPluginEntry[] getPluginEntries(); 181 182 188 public int getPluginEntryCount(); 189 190 196 public void addPluginEntry(IPluginEntry pluginEntry); 197 198 209 public IPluginEntry[] getPluginEntriesOnlyReferencedBy(IFeature feature) throws CoreException; 210 211 223 public long getDownloadSizeFor(IFeature feature); 224 225 237 public long getInstallSizeFor(IFeature feature); 238 239 249 public IFeatureReference install(IFeature feature, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException; 250 251 263 public IFeatureReference install(IFeature feature, IFeatureReference[] optionalfeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws InstallAbortedException, CoreException; 264 265 275 public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException; 276 277 285 public void setSiteContentProvider(ISiteContentProvider siteContentProvider); 286 287 293 public IConfiguredSite getCurrentConfiguredSite(); 294 295 309 IFeature createFeature(String type, URL url) throws CoreException; 310 311 325 IFeature createFeature(String type, URL url,IProgressMonitor monitor) throws CoreException; 326 327 328 } 329 | Popular Tags |