Commit 89462dc5 authored by Chen Wenwen's avatar Chen Wenwen
Browse files

finished

refs 845
parent d08151c4
......@@ -27,7 +27,7 @@ import org.fortiss.af3.mira.utils.MiraModelElementFactory;
* @author wenwenchen
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash:
* @ConQAT.Rating YELLOW Hash: E33FD06A9BA159331DD24EDCE62504BC
*/
public class ChangeRequirementToUseCase implements Runnable {
......@@ -45,6 +45,7 @@ public class ChangeRequirementToUseCase implements Runnable {
/** {@inheritDoc} */
@Override
public void run() {
u.setId(re.getId());
u.setName(re.getName());
u.setReqId(re.getReqId());
u.setDescription(re.getDescription());
......@@ -55,8 +56,13 @@ public class ChangeRequirementToUseCase implements Runnable {
u.setPriority(re.getPriority());
u.setTodo(re.getTodo());
u.setRationale(re.getRationale());
// fehlt noch getAnalysis,get RequirementConnector, getIncommingRelationsList,
// getOutgoingRelationsList;
u.setComment(re.getComment());
u.setImages(re.getImages());
u.setReferencedBy(re.getReferencedBy());
u.setSpecifications(re.getSpecifications());
u.getConnectionsList().addAll(re.getConnectionsList());
u.getConnectorsList().addAll(re.getConnectorsList());
u.getContainedElementsList().addAll(re.getContainedElementsList());
EcoreUtil.replace(re, u);
}
......
......@@ -26,7 +26,7 @@ import org.fortiss.af3.mira.utils.MiraModelElementFactory;
* @author wenwenchen
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating RED Hash:
* @ConQAT.Rating YELLOW Hash: 5994829DAA601CEF69D69C83507A2AFE
*/
public class ChangeUseCaseToRequirement<T extends Requirement> implements Runnable {
......@@ -36,6 +36,8 @@ public class ChangeUseCaseToRequirement<T extends Requirement> implements Runnab
/** new Requirement called r */
private Requirement r = MiraModelElementFactory.createRequirement();
// private Switch<Requirement> s;
/** Create the command with the selected relation */
public ChangeUseCaseToRequirement(T t) {
this.t = t;
......@@ -44,6 +46,7 @@ public class ChangeUseCaseToRequirement<T extends Requirement> implements Runnab
/** {@inheritDoc} */
@Override
public void run() {
r.setId(t.getId());
r.setName(t.getName());
r.setReqId(t.getReqId());
r.setDescription(t.getDescription());
......@@ -54,9 +57,13 @@ public class ChangeUseCaseToRequirement<T extends Requirement> implements Runnab
r.setPriority(t.getPriority());
r.setTodo(t.getTodo());
r.setRationale(t.getRationale());
// fehlt noch getAnalysis,get RequirementConnector, getIncommingRelationsList,
// getOutgoingRelationsList;
r.setComment(t.getComment());
r.setImages(t.getImages());
r.setReferencedBy(t.getReferencedBy());
r.setSpecifications(t.getSpecifications());
r.getConnectorsList().addAll(t.getConnectorsList());
r.getConnectionsList().addAll(t.getConnectionsList());
r.getContainedElementsList().addAll(t.getContainedElementsList());
EcoreUtil.replace(t, r);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment