|
SysML | |||||||||
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.sysml.tools.commands.EMFTestCaseCoverCommand
public class EMFTestCaseCoverCommand
Command that add or remove test cases which verify a requirement in the EMF SysML Editor.
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 | |
---|---|
EMFTestCaseCoverCommand(Requirement req,
java.util.List data,
java.util.List oldData)
Create a command for updating test cases verifying a requirement. |
Method Summary | |
---|---|
boolean |
canExecute()
execute |
void |
execute()
Set the values. |
void |
redo()
Set the new values. |
protected void |
setValues()
Set the values. |
protected void |
switchValues()
Switch the old and new values. |
void |
undo()
Set the old values. |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, 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 EMFTestCaseCoverCommand(Requirement req, java.util.List data, java.util.List oldData)
oldData
- the old datasdata
- the new datasreq
- the requirementMethod Detail |
---|
protected void setValues()
protected void switchValues()
public void execute()
Command.execute()
public void undo()
undo
in interface Command
undo
in class AbstractCommand
Command.undo()
public void redo()
Command.redo()
public boolean canExecute()
canExecute
in interface Command
canExecute
in class AbstractCommand
AbstractCommand.canExecute()
|
SysML | |||||||||
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.