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

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

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class AssemblyConnectorEditHelper0%   (0/1)0%   (0/2)0%   (0/64)0%   (0/14)
AssemblyConnectorEditHelper (): 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.AssemblyConnector;
12import de.uka.ipd.sdq.pcm.core.entity.EntityPackage;
13 
14/**
15 * Edit helper to create the initial naming of the new Assembly Connector.
16 * @author Benjamin Klatt
17 * 
18 * @generated
19 */
20public class AssemblyConnectorEditHelper extends
21                PalladioComponentModelBaseEditHelper {
22 
23        /**
24         * Get the configuration command for an AssemblyConnector.
25         * 
26         * This is modified manually to create the assumed name for the new connector.
27         * 
28         * @generated not
29         */
30        @Override
31        protected ICommand getConfigureCommand(ConfigureRequest req) {
32                AssemblyConnector con = (AssemblyConnector) req.getElementToConfigure();
33                String name = "Connector ";
34                name += con.getRequiringAssemblyContext_AssemblyConnector() == null ? ""
35                                : con.getRequiringAssemblyContext_AssemblyConnector()
36                                                .getEntityName();
37                name += " -> ";
38                name += con.getProvidingAssemblyContext_AssemblyConnector() == null ? ""
39                                : con.getProvidingAssemblyContext_AssemblyConnector()
40                                                .getEntityName();
41 
42                ICommand cmd2 = new SetValueCommand(new SetRequest(req
43                                .getElementToConfigure(), EntityPackage.eINSTANCE
44                                .getNamedElement_EntityName(), name));
45                return cmd2;
46        }
47 
48}

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