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

nameclass, %method, %block, %line, %
AbstractCreateRandomVariableEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/19)0%   (0/6)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AbstractCreateRandomVariableEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/19)0%   (0/6)
AbstractCreateRandomVariableEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getBeforeConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/16)0%   (0/5)

1package de.uka.ipd.sdq.pcm.gmf.seff.helper;
2 
3import org.eclipse.gmf.runtime.common.core.command.ICommand;
4import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
5import org.eclipse.gmf.runtime.emf.type.core.IElementType;
6import org.eclipse.gmf.runtime.emf.type.core.commands.CreateElementCommand;
7import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
8import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
9import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
10 
11public class AbstractCreateRandomVariableEditHelperAdvice extends
12                AbstractEditHelperAdvice {
13 
14        /* (non-Javadoc)
15         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
16         */
17        @Override
18        protected ICommand getBeforeConfigureCommand(ConfigureRequest request) {
19                IElementType elementType = ElementTypeRegistry.getInstance().
20                        getType("de.uka.ipd.sdq.pcm.gmf.seff.PCMRandomVariable_9000");
21                
22                CreateElementRequest createElementRequest = new CreateElementRequest(
23                                request.getElementToConfigure(), elementType);
24                return new CreateElementCommand(createElementRequest);
25        }
26 
27}

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