1 11 package org.eclipse.update.core; 12 13 import org.eclipse.core.runtime.CoreException; 14 15 32 33 public class BaseInstallHandler implements IInstallHandler { 34 35 44 protected int type; 45 46 50 protected IFeature feature; 51 52 57 protected IInstallHandlerEntry entry; 58 59 64 protected InstallMonitor monitor; 65 66 72 protected IPluginEntry[] pluginEntries; 73 74 80 protected INonPluginEntry[] nonPluginEntries; 81 82 87 protected boolean initialized = false; 88 89 95 public void initialize( 96 int type, 97 IFeature feature, 98 IInstallHandlerEntry entry, 99 InstallMonitor monitor) 100 throws CoreException { 101 102 if (this.initialized) 103 return; 104 else { 105 if (feature == null) 106 throw new IllegalArgumentException (); 107 this.type = type; 108 this.feature = feature; 109 this.entry = entry; 110 this.monitor = monitor; 111 this.initialized = true; 112 } 113 } 114 115 121 public void installInitiated() throws CoreException { 122 } 123 124 131 public void pluginsDownloaded(IPluginEntry[] plugins) throws CoreException { 132 133 this.pluginEntries = plugins; 134 } 135 136 143 public void nonPluginDataDownloaded( 144 INonPluginEntry[] nonPluginData, 145 IVerificationListener listener) 146 throws CoreException { 147 148 this.nonPluginEntries = nonPluginData; 149 } 150 151 158 public void completeInstall(IFeatureContentConsumer consumer) 159 throws CoreException { 160 } 161 162 168 public void installCompleted(boolean success) throws CoreException { 169 } 170 171 177 public void configureInitiated() throws CoreException { 178 } 179 180 186 public void completeConfigure() throws CoreException { 187 } 188 189 195 public void configureCompleted(boolean success) throws CoreException { 196 } 197 198 204 public void unconfigureInitiated() throws CoreException { 205 } 206 207 213 public void completeUnconfigure() throws CoreException { 214 } 215 216 222 public void unconfigureCompleted(boolean success) throws CoreException { 223 } 224 225 231 public void uninstallInitiated() throws CoreException { 232 } 233 234 240 public void completeUninstall() throws CoreException { 241 } 242 243 249 public void uninstallCompleted(boolean success) throws CoreException { 250 } 251 } 252 | Popular Tags |