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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class IncludeBehaviourEditHelperAdvice0%   (0/1)0%   (0/2)0%   (0/19)0%   (0/6)
IncludeBehaviourEditHelperAdvice (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getAfterConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/16)0%   (0/5)

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.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 
15/**
16 * @author admin
17 *
18 */
19public class IncludeBehaviourEditHelperAdvice extends AbstractEditHelperAdvice implements
20                IEditHelperAdvice {
21 
22        /* (non-Javadoc)
23         * @see org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice#getAfterConfigureCommand(org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest)
24         */
25        @Override
26        protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
27                IElementType elementType = ElementTypeRegistry.getInstance().getType(
28                                "de.uka.ipd.sdq.pcm.gmf.usage.ScenarioBehaviour_3007");
29 
30                CreateElementRequest createElementRequest = new CreateElementRequest(
31                                request.getElementToConfigure(), elementType);
32                return new CreateElementCommand(createElementRequest);
33        }
34 
35}

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