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 19 33 public interface ILocalSite extends IAdaptable { 34 35 47 IInstallConfiguration getCurrentConfiguration(); 48 49 61 public IInstallConfiguration[] getConfigurationHistory(); 62 63 81 public void revertTo( 82 IInstallConfiguration configuration, 83 IProgressMonitor monitor, 84 IProblemHandler handler) 85 throws CoreException; 86 87 102 public IInstallConfiguration cloneCurrentConfiguration() throws CoreException; 103 104 117 public void addConfiguration(IInstallConfiguration config); 118 119 132 public boolean save() throws CoreException; 133 134 147 public int getMaximumHistoryCount(); 148 149 161 public void setMaximumHistoryCount(int history); 162 163 175 public void addLocalSiteChangedListener(ILocalSiteChangedListener listener); 176 177 189 public void removeLocalSiteChangedListener(ILocalSiteChangedListener listener); 190 191 207 public IInstallConfiguration addToPreservedConfigurations(IInstallConfiguration configuration) 208 throws CoreException; 209 210 223 public void removeFromPreservedConfigurations(IInstallConfiguration configuration); 224 225 237 public IInstallConfiguration[] getPreservedConfigurations(); 238 239 270 public IStatus getFeatureStatus(IFeature feature) throws CoreException ; 271 272 } 273 | Popular Tags |