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 [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.seff.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.edithelper.AbstractEditHelperAdvice;
11import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
12import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
13import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
14 
15import de.uka.ipd.sdq.pcm.parameter.ParameterPackage;
16 
17/**
18 * @author Roman Andrej
19 *
20 */
21public class VariableCharacterisationEditHelperAdvice extends
22        AbstractEditHelperAdvice implements
23                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 
31                IElementType elementType = ElementTypeRegistry.getInstance().
32                getType("de.uka.ipd.sdq.pcm.gmf.seff.PCMRandomVariable_9000");
33        
34                
35                CreateElementRequest createElementRequest = new CreateElementRequest(
36                                request.getElementToConfigure(), elementType, ParameterPackage.eINSTANCE
37                                .getVariableCharacterisation_Specification_VariableCharacterisation());
38                return new CreateElementCommand(createElementRequest);
39                
40                
41//                PCMRandomVariable randomVariable = CoreFactory.eINSTANCE
42//                                .createPCMRandomVariable();
43//
44//                randomVariable.setSpecification("1");
45//
46//                SetRequest setRequest = new SetRequest(
47//                                (VariableCharacterisation) request.getElementToConfigure(),
48//                                ParameterPackage.eINSTANCE
49//                                                .getVariableCharacterisation_Specification_VariableCharacterisation(),
50//                                randomVariable);
51//
52//                // TODO Auto-generated method stub
53//                return new SetValueCommand(setRequest);
54        }
55 
56}

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