1 11 package org.eclipse.update.configuration; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IAdaptable; 15 import org.eclipse.core.runtime.IProgressMonitor; 16 import org.eclipse.core.runtime.IStatus; 17 import org.eclipse.update.core.IFeature; 18 import org.eclipse.update.core.IFeatureReference; 19 import org.eclipse.update.core.ISite; 20 import org.eclipse.update.core.IVerificationListener; 21 22 35 public interface IConfiguredSite extends IAdaptable { 36 37 49 public ISite getSite(); 50 51 70 public IStatus verifyUpdatableStatus(); 71 72 88 public boolean isUpdatable(); 89 90 105 public IFeatureReference install(IFeature feature, IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException; 106 107 124 public IFeatureReference install(IFeature feature, IFeatureReference[] optionalFeatures, IVerificationListener verificationListener, IProgressMonitor monitor) throws CoreException; 125 126 127 140 public void remove(IFeature feature, IProgressMonitor monitor) throws CoreException; 141 142 162 public IStatus getBrokenStatus(IFeature feature); 163 164 178 public boolean isConfigured(IFeature feature); 179 180 193 public void configure(IFeature feature) throws CoreException; 194 195 208 public boolean unconfigure(IFeature feature) throws CoreException; 209 210 222 public IFeatureReference[] getConfiguredFeatures(); 223 224 240 public IFeatureReference[] getFeatureReferences(); 241 242 254 public IInstallConfiguration getInstallConfiguration(); 255 256 268 public void addConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener); 269 270 282 public void removeConfiguredSiteChangedListener(IConfiguredSiteChangedListener listener); 283 284 297 public boolean isExtensionSite(); 298 299 312 public boolean isProductSite(); 313 314 330 public boolean isPrivateSite(); 331 332 346 public boolean isNativelyLinked() throws CoreException; 347 348 361 public void setEnabled(boolean value); 362 363 377 public boolean isEnabled(); 378 } 379 | Popular Tags |