|
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 commandMethod Detail |
---|
public boolean canExecute()
canExecute
in interface Command
canExecute
in class AbstractCommand
Command.canExecute()
public void execute()
Command.execute()
public boolean canUndo()
canUndo
in interface Command
canUndo
in class AbstractCommand
Command.canUndo()
public void undo()
undo
in interface Command
undo
in class AbstractCommand
Command.undo()
public void redo()
Command.redo()
public java.lang.String getLabel()
getLabel
in interface Command
getLabel
in class AbstractCommand
Command.getLabel()
public void dispose()
dispose
in interface Command
dispose
in class AbstractCommand
Command.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.