|
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.EMFDesignElementsCoverCommand
public class EMFDesignElementsCoverCommand
Command that add or remove design elements which satisfy 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 | |
|---|---|
EMFDesignElementsCoverCommand(Requirement req,
java.util.List data,
java.util.List oldData)
Create a command for updating design elements satisfying a requirement |
|
| Method Summary | |
|---|---|
boolean |
canExecute()
always 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 EMFDesignElementsCoverCommand(Requirement req,
java.util.List data,
java.util.List oldData)
req - the requirementdata - the new datasoldData - the old datas| Method Detail |
|---|
protected void setValues()
protected void switchValues()
public void execute()
Command.execute()public void undo()
undo in interface Commandundo in class AbstractCommandCommand.undo()public void redo()
Command.redo()public boolean canExecute()
canExecute in interface CommandcanExecute in class AbstractCommandAbstractCommand.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.