|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
org.topcased.modeler.commands.GEFtoEMFCommandWrapper
public class GEFtoEMFCommandWrapper
An EMF Command that wraps a GEF command. Each method is redirected to the GEF
one.
Adapts an GEF Command to be a
EMF Command.
Creation : 21 fev. 2006
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
AbstractCommand.NonDirtying |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
description, isExecutable, isPrepared, label |
| Constructor Summary | |
|---|---|
GEFtoEMFCommandWrapper(org.eclipse.gef.commands.Command command)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
|
boolean |
canUndo()
|
void |
dispose()
|
void |
execute()
|
java.lang.String |
getLabel()
|
void |
redo()
|
void |
undo()
|
| Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
chain, getAffectedObjects, getDescription, getResult, prepare, setDescription, setLabel, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GEFtoEMFCommandWrapper(org.eclipse.gef.commands.Command command)
command - the wrapped GEF command| Method Detail |
|---|
public boolean canExecute()
canExecute in interface CommandcanExecute in class AbstractCommandCommand.canExecute()public void execute()
Command.execute()public boolean canUndo()
canUndo in interface CommandcanUndo in class AbstractCommandCommand.canUndo()public void undo()
undo in interface Commandundo in class AbstractCommandCommand.undo()public void redo()
Command.redo()public java.lang.String getLabel()
getLabel in interface CommandgetLabel in class AbstractCommandCommand.getLabel()public void dispose()
dispose in interface Commanddispose in class AbstractCommandCommand.dispose()
|
Modelers | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.