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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IncludeResourceDemandingBehaviourEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/17)0%   (0/5)
IncludeResourceDemandingBehaviourEditHelperAdvice (): 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 IncludeResourceDemandingBehaviourEditHelperAdvice extends
21                AbstractEditHelperAdvice 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 
29                IElementType elementType = PalladioComponentModelElementTypes.ResourceDemandingBehaviour_3014;
30                
31                CreateElementRequest createElementRequest = new CreateElementRequest(
32                                request.getElementToConfigure(), elementType);
33                return new CreateElementCommand(createElementRequest);
34        }
35 
36}

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