org.eclipse.gmf.runtime.lite.commands
Class VetoCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.common.command.CommandWrapper
          extended by org.eclipse.gmf.runtime.lite.commands.VetoCommand
All Implemented Interfaces:
org.eclipse.emf.common.command.Command

public abstract class VetoCommand
extends org.eclipse.emf.common.command.CommandWrapper

Command that, if can be executed, does nothing.

Author:
bblajer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.command.CommandWrapper
command
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
VetoCommand()
           
VetoCommand(String label)
           
VetoCommand(String label, String description)
           
 
Method Summary
protected  org.eclipse.emf.common.command.Command createCommand()
           
protected abstract  boolean shouldExecute()
           
 
Methods inherited from class org.eclipse.emf.common.command.CommandWrapper
canUndo, dispose, execute, getAffectedObjects, getCommand, getDescription, getLabel, getResult, prepare, redo, toString, undo
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, setDescription, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VetoCommand

public VetoCommand()

VetoCommand

public VetoCommand(String label)

VetoCommand

public VetoCommand(String label,
                   String description)
Method Detail

createCommand

protected org.eclipse.emf.common.command.Command createCommand()
Overrides:
createCommand in class org.eclipse.emf.common.command.CommandWrapper

shouldExecute

protected abstract boolean shouldExecute()


Copyright © 2012. All Rights Reserved.