EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.pcm.gmf.composite.edit.helpers]

COVERAGE SUMMARY FOR SOURCE FILE [AssemblyInfrastructureConnectorEditHelper.java]

nameclass, %method, %block, %line, %
AssemblyInfrastructureConnectorEditHelper.java0%   (0/1)0%   (0/2)0%   (0/64)0%   (0/14)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AssemblyInfrastructureConnectorEditHelper0%   (0/1)0%   (0/2)0%   (0/64)0%   (0/14)
AssemblyInfrastructureConnectorEditHelper (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getConfigureCommand (ConfigureRequest): ICommand 0%   (0/1)0%   (0/61)0%   (0/13)

1/*
2 * Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.edit.helpers;
5 
6import org.eclipse.gmf.runtime.common.core.command.ICommand;
7import org.eclipse.gmf.runtime.emf.type.core.commands.SetValueCommand;
8import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
9import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
10 
11import de.uka.ipd.sdq.pcm.core.composition.AssemblyInfrastructureConnector;
12import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
13 
14/**
15 * @generated
16 */
17public class AssemblyInfrastructureConnectorEditHelper extends
18                PalladioComponentModelBaseEditHelper {
19        /**
20         * Get the configuration command for an AssemblyConnector.
21         * 
22         * This is modified manually to create the assumed name for the new connector.
23         * 
24         * @generated not
25         */
26        @Override
27        protected ICommand getConfigureCommand(ConfigureRequest req) {
28                AssemblyInfrastructureConnector con = (AssemblyInfrastructureConnector ) req.getElementToConfigure();
29                String name = "InfrastructureConnector ";
30                name += con.getRequiringAssemblyContext__AssemblyInfrastructureConnector() == null ? ""
31                                : con.getRequiringAssemblyContext__AssemblyInfrastructureConnector()
32                                                .getEntityName();
33                name += " -> ";
34                name += con.getProvidingAssemblyContext__AssemblyInfrastructureConnector() == null ? ""
35                                : con.getProvidingAssemblyContext__AssemblyInfrastructureConnector()
36                                                .getEntityName();
37 
38                ICommand cmd2 = new SetValueCommand(new SetRequest(req
39                                .getElementToConfigure(), EntityPackage.eINSTANCE
40                                .getNamedElement_EntityName(), name));
41                return cmd2;
42        }
43}

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