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

nameclass, %method, %block, %line, %
InternalActionEditHelperAdvice.java0%   (0/1)0%   (0/2)0%   (0/17)0%   (0/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class InternalActionEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/17)0%   (0/5)
InternalActionEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/14)0%   (0/4)

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.IElementType;
8import org.eclipse.gmf.runtime.emf.type.core.commands.CreateElementCommand;
9import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
10import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
11import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
12import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
13 
14import de.uka.ipd.sdq.pcm.gmf.seff.providers.PalladioComponentModelElementTypes;
15 
16/**
17 * @author admin
18 *
19 */
20public class InternalActionEditHelperAdvice extends AbstractEditHelperAdvice
21                implements IEditHelperAdvice {
22        
23        /* (non-Javadoc)
24         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
25         */
26        @Override
27        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
28                IElementType elementType = PalladioComponentModelElementTypes.ParametricResourceDemand_3051;
29 
30                CreateElementRequest createElementRequest = new CreateElementRequest(
31                                request.getElementToConfigure(), elementType);
32                return new CreateElementCommand(createElementRequest);
33        }
34 
35 
36}

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