|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.eclipse.update.core.BaseInstallHandler
Base implementation of an install handler. This is a convenience implementation of an install handler with null implementation of its methods. It allows subclasses to selectively implement only the methods required for their installation tasks.
This class should be subclassed by clients.
IInstallHandler| Field Summary | |
protected IInstallHandlerEntry |
entry
Model entry that defines this handler |
protected IFeature |
feature
The target of the action |
protected boolean |
initialized
Indicates if handler has been initialized |
protected InstallMonitor |
monitor
Optional progress monitor, can be null |
protected INonPluginEntry[] |
nonPluginEntries
Non-plug-in entries downloaded |
protected IPluginEntry[] |
pluginEntries
Plug-in entries downloaded |
protected int |
type
Update action type |
| Fields inherited from interface org.eclipse.update.core.IInstallHandler |
HANDLER_ACTION_CONFIGURE, HANDLER_ACTION_INSTALL, HANDLER_ACTION_UNCONFIGURE, HANDLER_ACTION_UNINSTALL |
| Constructor Summary | |
BaseInstallHandler()
|
|
| Method Summary | |
void |
completeConfigure()
Called after the feature has been configured. |
void |
completeInstall(IFeatureContentConsumer consumer)
Called after the feature files and any downloaded plug-ins have been installed. |
void |
completeUnconfigure()
Called after the feature has been unconfigured. |
void |
completeUninstall()
Called after the feature has been uninstalled. |
void |
configureCompleted(boolean success)
Called at the end of the configure action. |
void |
configureInitiated()
Called at the start of the configure action. |
void |
initialize(int type,
IFeature feature,
IInstallHandlerEntry entry,
InstallMonitor monitor)
Initialize the install handler. |
void |
installCompleted(boolean success)
Called at the end of the install action. |
void |
installInitiated()
Called at the start of the install action. |
void |
nonPluginDataDownloaded(INonPluginEntry[] nonPluginData,
IVerificationListener listener)
Called after files corresponding to non-plug-in entries have been downloaded. |
void |
pluginsDownloaded(IPluginEntry[] plugins)
Called after files corresponding to plug-in entries have been downloaded, but before they are actully unpacked and installed. |
void |
unconfigureCompleted(boolean success)
Called at the end of the unconfigure action. |
void |
unconfigureInitiated()
Called at the start of the unconfigure action. |
void |
uninstallCompleted(boolean success)
Called at the end of the uninstall action. |
void |
uninstallInitiated()
Called at the start of the uninstall action. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int type
IInstallHandler.HANDLER_ACTION_INSTALL,
IInstallHandler.HANDLER_ACTION_CONFIGURE,
IInstallHandler.HANDLER_ACTION_UNCONFIGURE,
IInstallHandler.HANDLER_ACTION_UNINSTALLprotected IFeature feature
protected IInstallHandlerEntry entry
protected InstallMonitor monitor
nullprotected IPluginEntry[] pluginEntries
IInstallHandler.HANDLER_ACTION_INSTALLprotected INonPluginEntry[] nonPluginEntries
IInstallHandler.HANDLER_ACTION_INSTALLprotected boolean initialized
| Constructor Detail |
public BaseInstallHandler()
| Method Detail |
public void initialize(int type,
IFeature feature,
IInstallHandlerEntry entry,
InstallMonitor monitor)
throws CoreException
initialize in interface IInstallHandlerIInstallHandler.initialize(int, IFeature, IInstallHandlerEntry, InstallMonitor)
public void installInitiated()
throws CoreException
installInitiated in interface IInstallHandlerIInstallHandler.installInitiated()
public void pluginsDownloaded(IPluginEntry[] plugins)
throws CoreException
pluginsDownloaded in interface IInstallHandlerIInstallHandler.pluginsDownloaded(IPluginEntry[])
public void nonPluginDataDownloaded(INonPluginEntry[] nonPluginData,
IVerificationListener listener)
throws CoreException
nonPluginDataDownloaded in interface IInstallHandlerIInstallHandler.nonPluginDataDownloaded(INonPluginEntry[], IVerificationListener)
public void completeInstall(IFeatureContentConsumer consumer)
throws CoreException
completeInstall in interface IInstallHandlerIInstallHandler.completeInstall(IFeatureContentConsumer)
public void installCompleted(boolean success)
throws CoreException
installCompleted in interface IInstallHandlerIInstallHandler.installCompleted(boolean)
public void configureInitiated()
throws CoreException
configureInitiated in interface IInstallHandlerIInstallHandler.configureInitiated()
public void completeConfigure()
throws CoreException
completeConfigure in interface IInstallHandlerIInstallHandler.completeConfigure()
public void configureCompleted(boolean success)
throws CoreException
configureCompleted in interface IInstallHandlerIInstallHandler.configureCompleted(boolean)
public void unconfigureInitiated()
throws CoreException
unconfigureInitiated in interface IInstallHandlerIInstallHandler.unconfigureInitiated()
public void completeUnconfigure()
throws CoreException
completeUnconfigure in interface IInstallHandlerIInstallHandler.completeUnconfigure()
public void unconfigureCompleted(boolean success)
throws CoreException
unconfigureCompleted in interface IInstallHandlerIInstallHandler.unconfigureCompleted(boolean)
public void uninstallInitiated()
throws CoreException
uninstallInitiated in interface IInstallHandlerIInstallHandler.uninstallInitiated()
public void completeUninstall()
throws CoreException
completeUninstall in interface IInstallHandlerIInstallHandler.completeUninstall()
public void uninstallCompleted(boolean success)
throws CoreException
uninstallCompleted in interface IInstallHandlerIInstallHandler.uninstallCompleted(boolean)
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||