org.eclipse.jpt.common.core.utility.command
Class JobCommand.Disabled
java.lang.Object
org.eclipse.jpt.common.core.utility.command.JobCommand.Disabled
- All Implemented Interfaces:
- Serializable, InterruptibleJobCommand, JobCommand
- Enclosing interface:
- JobCommand
public static final class JobCommand.Disabled
- extends Object
- implements JobCommand, Serializable
Singleton implementation of the job command interface that will throw an
exception when executed.
- See Also:
- Serialized Form
INSTANCE
public static final JobCommand INSTANCE
instance
public static JobCommand instance()
execute
public IStatus execute(IProgressMonitor monitor)
- Description copied from interface:
JobCommand
- Execute the command. The semantics of the command
is determined by the contract between the client and server.
The command should check, as appropriate, whether the specified progress
monitor is
"canceled"; if it is,
the command should return a result
status of severity IStatus.CANCEL. The singleton
cancel status Status.CANCEL_STATUS can be used for
this purpose.
Nested methods can also check the progress monitor
and, if it is "canceled", throw an
OperationCanceledException.
- Specified by:
execute in interface InterruptibleJobCommand- Specified by:
execute in interface JobCommand
- See Also:
IProgressMonitor.isCanceled(),
Job.run(IProgressMonitor monitor)
toString
public String toString()
- Overrides:
toString in class Object
Copyright (c) 2012 Oracle. All rights reserved.