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 [CreateDelaySpecificationEditHelperAdvice.java]

nameclass, %method, %block, %line, %
CreateDelaySpecificationEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class CreateDelaySpecificationEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/24)0%   (0/8)
CreateDelaySpecificationEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/21)0%   (0/7)

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.Delay;
13import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage;
14 
15 
16/**
17 * @author christophrathfelder
18 */
19 
20public class CreateDelaySpecificationEditHelperAdvice extends
21                AbstractEditHelperAdvice implements IEditHelperAdvice {
22        /* (non-Javadoc)
23         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
24         */
25        @Override
26        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
27 
28                PCMRandomVariable randomVariable = CoreFactory.eINSTANCE
29                                .createPCMRandomVariable();
30 
31                randomVariable.setSpecification("0.0");
32 
33                SetRequest setRequest = new SetRequest((Delay) request
34                                .getElementToConfigure(), UsagemodelPackage.eINSTANCE
35                                .getDelay_TimeSpecification_Delay(), randomVariable);
36 
37                return new SetValueCommand(setRequest);
38        }
39}

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