EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.seff.helper]

COVERAGE SUMMARY FOR SOURCE FILE [CreateLoopActionEditHelperAdvice.java]

nameclass, %method, %block, %line, %
CreateLoopActionEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/9)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CreateLoopActionEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/9)
CreateLoopActionEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/21)0%   (0/8)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.helper;
5 
6import org.eclipse.gmf.runtime.common.core.command.ICommand;
7import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
8import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
9import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
10import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
11 
12import de.uka.ipd.sdq.pcm.core.CoreFactory;
13import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
14import de.uka.ipd.sdq.pcm.seff.LoopAction;
15import de.uka.ipd.sdq.pcm.seff.SeffPackage;
16 
17/**
18 * The Class define a edit helper to create a empty loop action.
19 * 
20 * @author Roman Andrej
21 */
22public class CreateLoopActionEditHelperAdvice extends
23                AbstractCreateRandomVariableEditHelperAdvice implements IEditHelperAdvice {
24        
25        /* (non-Javadoc)
26         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
27         */
28        @Override
29        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
30                PCMRandomVariable randomVariable = CoreFactory.eINSTANCE
31                                .createPCMRandomVariable();
32 
33                randomVariable.setSpecification("1");
34 
35                SetRequest setRequest = new SetRequest(
36                                (LoopAction) request.getElementToConfigure(),
37                                SeffPackage.eINSTANCE.getLoopAction_IterationCount_LoopAction(),
38                                randomVariable);
39 
40                return new SetValueCommand(setRequest);
41        }
42}

[all classes][de.uka.ipd.sdq.pcm.gmf.seff.helper]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov