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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelBaseEditHelper.java]

nameclass, %method, %block, %line, %
PalladioComponentModelBaseEditHelper.java0%   (0/1)0%   (0/6)0%   (0/45)0%   (0/16)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelBaseEditHelper0%   (0/1)0%   (0/6)0%   (0/45)0%   (0/16)
PalladioComponentModelBaseEditHelper (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getCreateCommand (CreateElementRequest): ICommand 0%   (0/1)0%   (0/2)0%   (0/1)
getCreateRelationshipCommand (CreateRelationshipRequest): ICommand 0%   (0/1)0%   (0/2)0%   (0/1)
getDestroyElementCommand (DestroyElementRequest): ICommand 0%   (0/1)0%   (0/2)0%   (0/1)
getDestroyReferenceCommand (DestroyReferenceRequest): ICommand 0%   (0/1)0%   (0/2)0%   (0/1)
getInsteadCommand (IEditCommandRequest): ICommand 0%   (0/1)0%   (0/34)0%   (0/11)

1/*
2 *Copyright 2007, SDQ, IPD, U KA
3 */
4package de.uka.ipd.sdq.pcm.gmf.allocation.edit.helpers;
5 
6import org.eclipse.gmf.runtime.common.core.command.CompositeCommand;
7import org.eclipse.gmf.runtime.common.core.command.ICommand;
8import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper;
9import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
10import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
11import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
12import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
13import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
14 
15/**
16 * @generated
17 */
18public class PalladioComponentModelBaseEditHelper extends AbstractEditHelper {
19 
20        /**
21         * @generated
22         */
23        public static final String EDIT_POLICY_COMMAND = "edit policy command"; //$NON-NLS-1$
24 
25        /**
26         * @generated
27         */
28        protected ICommand getInsteadCommand(IEditCommandRequest req) {
29                ICommand epCommand = (ICommand) req.getParameter(EDIT_POLICY_COMMAND);
30                req.setParameter(EDIT_POLICY_COMMAND, null);
31                ICommand ehCommand = super.getInsteadCommand(req);
32                if (epCommand == null) {
33                        return ehCommand;
34                }
35                if (ehCommand == null) {
36                        return epCommand;
37                }
38                CompositeCommand command = new CompositeCommand(null);
39                command.add(epCommand);
40                command.add(ehCommand);
41                return command;
42        }
43 
44        /**
45         * @generated
46         */
47        protected ICommand getCreateCommand(CreateElementRequest req) {
48                return null;
49        }
50 
51        /**
52         * @generated
53         */
54        protected ICommand getCreateRelationshipCommand(
55                        CreateRelationshipRequest req) {
56                return null;
57        }
58 
59        /**
60         * @generated
61         */
62        protected ICommand getDestroyElementCommand(DestroyElementRequest req) {
63                return null;
64        }
65 
66        /**
67         * @generated
68         */
69        protected ICommand getDestroyReferenceCommand(DestroyReferenceRequest req) {
70                return null;
71        }
72}

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