org.eclipse.update.standalone
Class ScriptedCommand
java.lang.Object
org.eclipse.update.standalone.ScriptedCommand
-
All Implemented Interfaces:
-
IOperationListener
-
Direct Known Subclasses:
-
AddSiteCommand,
DisableCommand,
EnableCommand,
InstallCommand,
ListFeaturesCommand,
RemoveSiteCommand,
SearchCommand,
UninstallCommand,
UpdateCommand
Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This
provisional API was never promoted to stable API, and may be removed from a future release of the platform.
-
public abstract class ScriptedCommand
- extends
Object
- implements
IOperationListener
Parent class for all the update manager standalone commands.
Subclasses will provide specific operations and the implementation of the run() method.
Note: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
-
Since:
- 3.0
Field Summary
|
protected boolean
|
verifyOnly
Deprecated. |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
verifyOnly
protected boolean verifyOnly
-
Deprecated.
ScriptedCommand
public ScriptedCommand()
-
Deprecated.
- Constructor
ScriptedCommand
public ScriptedCommand(
String verifyOnly)
-
Deprecated.
- Constructor.
-
Parameters:
-
verifyOnly
- if true, the command is not executed, but will only attempt to run the command.
This is mostly used when wanted to know if the command would fail.
isVerifyOnly
protected final boolean isVerifyOnly()
-
Deprecated.
-
-
-
Returns:
- true if the command should only be run in simulation mode,
to verify if it can execute.
run
public final boolean run()
-
Deprecated.
- Convenience method that executes the command with a null progress monitor.
-
-
run
public abstract boolean run(
IProgressMonitor monitor)
-
Deprecated.
- Executes the command. Subclasses are responsible for implementing this method.
If the command was constructed with verifyOnly=true, the command should not execute, but only verify it can execute.
-
-
-
Parameters:
-
monitor
- progress monitor during command execution.
applyChangesNow
public void applyChangesNow()
-
Deprecated.
- Applies the changes made to the current configuration.
-
-
afterExecute
public boolean afterExecute(
IOperation operation,
Object data)
-
Deprecated.
-
Description copied from interface:
IOperationListener
- May be called after an operation finishes executing.
-
-
Specified by:
-
afterExecute
in interface
IOperationListener
-
-
Parameters:
-
operation
- operation to listen to -
data
- info specific to the operation
-
Returns:
- not used
beforeExecute
public boolean beforeExecute(
IOperation operation,
Object data)
-
Deprecated.
-
Description copied from interface:
IOperationListener
- May be called before an operation starts executing.
-
-
Specified by:
-
beforeExecute
in interface
IOperationListener
-
-
Parameters:
-
operation
- operation to listen to -
data
- info specific to the operation
-
Returns:
- not used
getConfiguration
public final
IInstallConfiguration getConfiguration()
-
Deprecated.
-
-
-
Returns:
- the installation configuration affected by the command
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.