Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.update.standalone
Class ScriptedCommand

java.lang.Object
  extended by 
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.  
 
Constructor Summary
ScriptedCommand ()
          Deprecated. Constructor
ScriptedCommand ( String verifyOnly)
          Deprecated. Constructor.
 
Method Summary
 boolean afterExecute ( IOperation operation, Object data)
          Deprecated. May be called after an operation finishes executing.
 void applyChangesNow ()
          Deprecated. Applies the changes made to the current configuration.
 boolean beforeExecute ( IOperation operation, Object data)
          Deprecated. May be called before an operation starts executing.
  IInstallConfiguration getConfiguration ()
          Deprecated.  
protected  boolean isVerifyOnly ()
          Deprecated.  
 boolean run ()
          Deprecated. Convenience method that executes the command with a null progress monitor.
abstract  boolean run ( IProgressMonitor monitor)
          Deprecated. Executes the command.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verifyOnly

protected boolean verifyOnly
Deprecated. 
Constructor Detail

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.
Method Detail

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire