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

nameclass, %method, %block, %line, %
PalladioComponentModelBaseEditHelper.java0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/20)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelBaseEditHelper0%   (0/1)0%   (0/7)0%   (0/61)0%   (0/20)
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)
getEditHelperAdvice (IEditCommandRequest): IEditHelperAdvice [] 0%   (0/1)0%   (0/16)0%   (0/4)
getInsteadCommand (IEditCommandRequest): ICommand 0%   (0/1)0%   (0/34)0%   (0/11)

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.CompositeCommand;
7import org.eclipse.gmf.runtime.common.core.command.ICommand;
8import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
9import org.eclipse.gmf.runtime.emf.type.core.IElementType;
10import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelper;
11import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
12import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
13import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest;
14import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest;
15import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyReferenceRequest;
16import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
17 
18/**
19 * @generated
20 */
21public class PalladioComponentModelBaseEditHelper extends AbstractEditHelper {
22 
23        /**
24         * @generated
25         */
26        public static final String EDIT_POLICY_COMMAND = "edit policy command"; //$NON-NLS-1$
27 
28        /**
29         * @generated
30         */
31        public static final String CONTEXT_ELEMENT_TYPE = "context element type"; //$NON-NLS-1$
32 
33        /**
34         * @generated
35         */
36        protected IEditHelperAdvice[] getEditHelperAdvice(IEditCommandRequest req) {
37                if (req.getParameter(CONTEXT_ELEMENT_TYPE) instanceof IElementType) {
38                        return ElementTypeRegistry.getInstance().getEditHelperAdvice(
39                                        (IElementType) req.getParameter(CONTEXT_ELEMENT_TYPE));
40                }
41                return super.getEditHelperAdvice(req);
42        }
43 
44        /**
45         * @generated
46         */
47        protected ICommand getInsteadCommand(IEditCommandRequest req) {
48                ICommand epCommand = (ICommand) req.getParameter(EDIT_POLICY_COMMAND);
49                req.setParameter(EDIT_POLICY_COMMAND, null);
50                ICommand ehCommand = super.getInsteadCommand(req);
51                if (epCommand == null) {
52                        return ehCommand;
53                }
54                if (ehCommand == null) {
55                        return epCommand;
56                }
57                CompositeCommand command = new CompositeCommand(null);
58                command.add(epCommand);
59                command.add(ehCommand);
60                return command;
61        }
62 
63        /**
64         * @generated
65         */
66        protected ICommand getCreateCommand(CreateElementRequest req) {
67                return null;
68        }
69 
70        /**
71         * @generated
72         */
73        protected ICommand getCreateRelationshipCommand(
74                        CreateRelationshipRequest req) {
75                return null;
76        }
77 
78        /**
79         * @generated
80         */
81        protected ICommand getDestroyElementCommand(DestroyElementRequest req) {
82                return null;
83        }
84 
85        /**
86         * @generated
87         */
88        protected ICommand getDestroyReferenceCommand(DestroyReferenceRequest req) {
89                return null;
90        }
91}

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