|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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_UNINSTALL
protected IFeature feature
protected IInstallHandlerEntry entry
protected InstallMonitor monitor
null
protected IPluginEntry[] pluginEntries
IInstallHandler.HANDLER_ACTION_INSTALL
protected INonPluginEntry[] nonPluginEntries
IInstallHandler.HANDLER_ACTION_INSTALL
protected boolean initialized
Constructor Detail |
public BaseInstallHandler()
Method Detail |
public void initialize(int type, IFeature feature, IInstallHandlerEntry entry, InstallMonitor monitor) throws CoreException
initialize
in interface IInstallHandler
type
- update action typefeature
- the target of the actionentry
- model entry that defines this handlermonitor
- optional progress monitor, can be null
CoreException
IInstallHandler.initialize(int, IFeature, IInstallHandlerEntry, InstallMonitor)
public void installInitiated() throws CoreException
installInitiated
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.installInitiated()
public void pluginsDownloaded(IPluginEntry[] plugins) throws CoreException
pluginsDownloaded
in interface IInstallHandler
plugins
- downloaded plug-in entries. Note this may be a subset
of the plug-ins actually references by the feature.
CoreException
- terminates the actionIInstallHandler.pluginsDownloaded(IPluginEntry[])
public void nonPluginDataDownloaded(INonPluginEntry[] nonPluginData, IVerificationListener listener) throws CoreException
nonPluginDataDownloaded
in interface IInstallHandler
nonPluginData
- downloaded non-plug-in entries.listener
- verification listener, may be null
.
CoreException
- terminates the actionIInstallHandler.nonPluginDataDownloaded(INonPluginEntry[], IVerificationListener)
public void completeInstall(IFeatureContentConsumer consumer) throws CoreException
completeInstall
in interface IInstallHandler
consumer
- content consumer for the feature. The install handler
can choose to use this consumer to install the non-plug-in data,
or can handle the data in any other way. If using the consumer,
the install handler should only call
CoreException
- terminates the actionIInstallHandler#pluginsInstalled(IFeatureContentConsumer)
public void installCompleted(boolean success) throws CoreException
installCompleted
in interface IInstallHandler
success
- indicates action success.
CoreException
- terminates the actionIInstallHandler.installCompleted(boolean)
public void configureInitiated() throws CoreException
configureInitiated
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.configureInitiated()
public void completeConfigure() throws CoreException
completeConfigure
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.completeConfigure()
public void configureCompleted(boolean success) throws CoreException
configureCompleted
in interface IInstallHandler
success
- indicates action success.
CoreException
- terminates the actionIInstallHandler.configureCompleted(boolean)
public void unconfigureInitiated() throws CoreException
unconfigureInitiated
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.unconfigureInitiated()
public void completeUnconfigure() throws CoreException
completeUnconfigure
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.completeUnconfigure()
public void unconfigureCompleted(boolean success) throws CoreException
unconfigureCompleted
in interface IInstallHandler
success
- indicates action success.
CoreException
- terminates the actionIInstallHandler.unconfigureCompleted(boolean)
public void uninstallInitiated() throws CoreException
uninstallInitiated
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.uninstallInitiated()
public void completeUninstall() throws CoreException
completeUninstall
in interface IInstallHandler
CoreException
- terminates the actionIInstallHandler.completeUninstall()
public void uninstallCompleted(boolean success) throws CoreException
uninstallCompleted
in interface IInstallHandler
success
- indicates action success.
CoreException
- terminates the actionIInstallHandler.uninstallCompleted(boolean)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |