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

nameclass, %method, %block, %line, %
VariableCharacterisationEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/21)0%   (0/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class VariableCharacterisationEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/21)0%   (0/7)
VariableCharacterisationEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/18)0%   (0/6)

1/**
2 * 
3 */
4package de.uka.ipd.sdq.pcm.gmf.usage.helper;
5 
6import org.eclipse.gmf.runtime.common.core.command.ICommand;
7import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
8import org.eclipse.gmf.runtime.emf.type.core.IElementType;
9import org.eclipse.gmf.runtime.emf.type.core.commands.CreateElementCommand;
10import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
11import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
12import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
13import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
14import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
15import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
16 
17import de.uka.ipd.sdq.pcm.core.CoreFactory;
18import de.uka.ipd.sdq.pcm.core.PCMRandomVariable;
19import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
20import de.uka.ipd.sdq.pcm.parameter.VariableCharacterisation;
21import de.uka.ipd.sdq.pcm.seff.LoopAction;
22import de.uka.ipd.sdq.pcm.seff.SeffPackage;
23 
24/**
25 * @author Roman Andrej
26 *
27 */
28public class VariableCharacterisationEditHelperAdvice extends
29        AbstractEditHelperAdvice implements
30                IEditHelperAdvice {
31 
32        /* (non-Javadoc)
33         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
34         */
35        @Override
36        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
37 
38                IElementType elementType = ElementTypeRegistry.getInstance().
39                getType("de.uka.ipd.sdq.pcm.gmf.seff.PCMRandomVariable_9000");
40        
41                
42                CreateElementRequest createElementRequest = new CreateElementRequest(
43                                request.getElementToConfigure(), elementType, ParameterPackage.eINSTANCE
44                                .getVariableCharacterisation_Specification_VariableCharacterisation());
45                return new CreateElementCommand(createElementRequest);
46                
47        }
48 
49}

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