1 11 12 package org.eclipse.update.core; 13 14 import java.net.URL ; 15 16 import org.eclipse.core.runtime.CoreException; 17 import org.eclipse.core.runtime.IAdaptable; 18 import org.eclipse.core.runtime.IProgressMonitor; 19 import org.eclipse.update.core.model.InstallAbortedException; 20 21 46 public interface IFeature extends IAdaptable, IPlatformEnvironment { 47 48 57 public static final int STATUS_HAPPY = 0; 58 59 67 public static final int STATUS_AMBIGUOUS = 1; 68 69 77 public static final int STATUS_UNHAPPY = 2; 78 79 80 86 public static final int STATUS_DISABLED = -1; 87 88 94 public static final int SEARCH_LOCATION_DEFAULT = 0; 95 96 102 public static final int SEARCH_LOCATION_FEATURE = 1; 103 104 111 public static final int SEARCH_LOCATION_BOTH = 2; 112 113 114 120 public VersionedIdentifier getVersionedIdentifier(); 121 122 128 public ISite getSite(); 129 130 136 public String getLabel(); 137 138 145 public URL getURL(); 146 147 155 public IURLEntry getUpdateSiteEntry(); 156 157 165 public IURLEntry[] getDiscoverySiteEntries(); 166 167 173 public String getProvider(); 174 175 182 public IInstallHandlerEntry getInstallHandlerEntry(); 183 184 190 public IURLEntry getDescription(); 191 192 198 public IURLEntry getCopyright(); 199 200 206 public IURLEntry getLicense(); 207 208 214 public URL getImage(); 215 216 226 public IImport[] getImports(); 227 228 237 public IImport[] getRawImports(); 238 239 248 public String getPrimaryPluginID(); 249 250 251 262 public IFeatureReference install( 263 IFeature targetFeature, 264 IVerificationListener verificationListener, 265 IProgressMonitor monitor) 266 throws InstallAbortedException,CoreException; 267 268 280 public IFeatureReference install( 281 IFeature targetFeature, 282 IFeatureReference[] optionalFeatures, 283 IVerificationListener verificationListener, 284 IProgressMonitor monitor) 285 throws InstallAbortedException,CoreException; 286 287 295 public IIncludedFeatureReference[] getIncludedFeatureReferences() throws CoreException; 296 297 304 public IIncludedFeatureReference[] getRawIncludedFeatureReferences() throws CoreException; 305 306 314 public IPluginEntry[] getPluginEntries(); 315 316 323 public IPluginEntry[] getRawPluginEntries(); 324 325 331 public int getPluginEntryCount(); 332 333 341 public INonPluginEntry[] getNonPluginEntries(); 342 343 350 public INonPluginEntry[] getRawNonPluginEntries(); 351 352 358 public int getNonPluginEntryCount(); 359 360 368 public long getDownloadSize(); 369 370 378 public long getInstallSize(); 379 380 387 public boolean isPrimary(); 388 389 398 public boolean isExclusive(); 399 400 409 public String getApplication(); 410 411 417 public String getAffinityFeature(); 418 419 430 public IFeatureContentProvider getFeatureContentProvider() 431 throws CoreException; 432 433 448 public IFeatureContentConsumer getFeatureContentConsumer() 449 throws CoreException; 450 451 460 public void setSite(ISite site) throws CoreException; 461 462 470 public void setFeatureContentProvider(IFeatureContentProvider featureContentProvider); 471 472 478 public boolean isPatch(); 479 480 481 } | Popular Tags |