| 1 | package de.uka.ipd.sdq.pcm.gmf.seff.helper; |
| 2 | |
| 3 | import org.eclipse.core.commands.ExecutionException; |
| 4 | import org.eclipse.core.runtime.IAdaptable; |
| 5 | import org.eclipse.core.runtime.IProgressMonitor; |
| 6 | import org.eclipse.gmf.runtime.common.core.command.AbstractCommand; |
| 7 | import org.eclipse.gmf.runtime.common.core.command.CommandResult; |
| 8 | |
| 9 | /** |
| 10 | * This class handles the OKCommand used in EditHelpers. |
| 11 | * |
| 12 | */ |
| 13 | public class OKCommand extends AbstractCommand { |
| 14 | |
| 15 | /** |
| 16 | * Constructor for an OKCommand. |
| 17 | */ |
| 18 | public OKCommand() { |
| 19 | super("OK Command"); |
| 20 | } |
| 21 | |
| 22 | @Override |
| 23 | protected CommandResult doExecuteWithResult( |
| 24 | IProgressMonitor progressMonitor, IAdaptable info) |
| 25 | throws ExecutionException { |
| 26 | return CommandResult.newOKCommandResult(); |
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | protected CommandResult doRedoWithResult(IProgressMonitor progressMonitor, |
| 31 | IAdaptable info) throws ExecutionException { |
| 32 | return CommandResult.newOKCommandResult(); |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | protected CommandResult doUndoWithResult(IProgressMonitor progressMonitor, |
| 37 | IAdaptable info) throws ExecutionException { |
| 38 | return CommandResult.newOKCommandResult(); |
| 39 | } |
| 40 | } |