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

COVERAGE SUMMARY FOR SOURCE FILE [CreateThinkTimeEditHelperAdvice.java]

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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

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