Dali Provisional API
Release 3.2

org.eclipse.jpt.common.utility.command
Class NotifyingRepeatingCommand.Null

java.lang.Object
  extended by org.eclipse.jpt.common.utility.command.NotifyingRepeatingCommand.Null
All Implemented Interfaces:
Serializable, Command, InterruptibleCommand, NotifyingRepeatingCommand, RepeatingCommand
Enclosing interface:
NotifyingRepeatingCommand

public static final class NotifyingRepeatingCommand.Null
extends Object
implements NotifyingRepeatingCommand, Serializable

Singleton implementation of the notifying repeating command interface that will do nothing when executed.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.NotifyingRepeatingCommand
NotifyingRepeatingCommand.Listener, NotifyingRepeatingCommand.Null
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.Command
Command.Disabled
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.utility.command.InterruptibleCommand
InterruptibleCommand.Interrupted
 
Field Summary
static NotifyingRepeatingCommand INSTANCE
           
 
Method Summary
 void addListener(NotifyingRepeatingCommand.Listener listener)
          Add the specified listener.
 void execute()
          Execute the command.
static NotifyingRepeatingCommand instance()
           
 void removeListener(NotifyingRepeatingCommand.Listener listener)
          Remove the specified listener.
 void start()
          Start the command, allowing it to begin executing with the next call to Command.execute().
 void stop()
          Stop the command; ignore further calls to Command.execute().
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final NotifyingRepeatingCommand INSTANCE
Method Detail

instance

public static NotifyingRepeatingCommand instance()

start

public void start()
Description copied from interface: RepeatingCommand
Start the command, allowing it to begin executing with the next call to Command.execute().

Specified by:
start in interface RepeatingCommand

execute

public void execute()
Description copied from interface: Command
Execute the command. The semantics of the command is determined by the contract between the client and server.

Specified by:
execute in interface Command
Specified by:
execute in interface InterruptibleCommand

stop

public void stop()
Description copied from interface: RepeatingCommand
Stop the command; ignore further calls to Command.execute().

Specified by:
stop in interface RepeatingCommand

addListener

public void addListener(NotifyingRepeatingCommand.Listener listener)
Description copied from interface: NotifyingRepeatingCommand
Add the specified listener.

Specified by:
addListener in interface NotifyingRepeatingCommand

removeListener

public void removeListener(NotifyingRepeatingCommand.Listener listener)
Description copied from interface: NotifyingRepeatingCommand
Remove the specified listener.

Specified by:
removeListener in interface NotifyingRepeatingCommand

toString

public String toString()
Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.