|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.common.core.utility.command.NotifyingRepeatingJobCommand.Null
public static final class NotifyingRepeatingJobCommand.Null
Singleton implementation of the notifying repeating command interface that will do nothing when executed.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.NotifyingRepeatingJobCommand |
|---|
NotifyingRepeatingJobCommand.Listener, NotifyingRepeatingJobCommand.Null |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.JobCommand |
|---|
JobCommand.Disabled |
| Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.utility.command.InterruptibleJobCommand |
|---|
InterruptibleJobCommand.Interrupted |
| Field Summary | |
|---|---|
static NotifyingRepeatingJobCommand |
INSTANCE
|
| Method Summary | |
|---|---|
void |
addListener(NotifyingRepeatingJobCommand.Listener listener)
Add the specified listener. |
IStatus |
execute(IProgressMonitor monitor)
Execute the command. |
static NotifyingRepeatingJobCommand |
instance()
|
void |
removeListener(NotifyingRepeatingJobCommand.Listener listener)
Remove the specified listener. |
void |
start()
Start the job command, allowing it to begin executing with the next call to JobCommand.execute(IProgressMonitor). |
void |
stop()
Stop the job command; ignore further calls to JobCommand.execute(IProgressMonitor). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NotifyingRepeatingJobCommand INSTANCE
| Method Detail |
|---|
public static NotifyingRepeatingJobCommand instance()
public void start()
RepeatingJobCommandJobCommand.execute(IProgressMonitor).
start in interface RepeatingJobCommandpublic IStatus execute(IProgressMonitor monitor)
JobCommand"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.
execute in interface InterruptibleJobCommandexecute in interface JobCommandIProgressMonitor.isCanceled(),
Job.run(IProgressMonitor monitor)public void stop()
RepeatingJobCommandJobCommand.execute(IProgressMonitor).
stop in interface RepeatingJobCommandpublic void addListener(NotifyingRepeatingJobCommand.Listener listener)
NotifyingRepeatingJobCommand
addListener in interface NotifyingRepeatingJobCommandpublic void removeListener(NotifyingRepeatingJobCommand.Listener listener)
NotifyingRepeatingJobCommand
removeListener in interface NotifyingRepeatingJobCommandpublic String toString()
toString in class Object
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||