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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelReorientConnectionViewCommand.java]

nameclass, %method, %block, %line, %
PalladioComponentModelReorientConnectionViewCommand.java0%   (0/1)0%   (0/6)0%   (0/72)0%   (0/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelReorientConnectionViewCommand0%   (0/1)0%   (0/6)0%   (0/72)0%   (0/17)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
PalladioComponentModelReorientConnectionViewCommand (TransactionalEditingDoma... 0%   (0/1)0%   (0/6)0%   (0/2)
doExecuteWithResult (IProgressMonitor, IAdaptable): CommandResult 0%   (0/1)0%   (0/37)0%   (0/7)
getAffectedFiles (): List 0%   (0/1)0%   (0/14)0%   (0/4)
getEdgeAdaptor (): IAdaptable 0%   (0/1)0%   (0/3)0%   (0/1)
setEdgeAdaptor (IAdaptable): void 0%   (0/1)0%   (0/4)0%   (0/2)

1/*
2 *Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.edit.commands;
5 
6import java.util.List;
7 
8import org.eclipse.core.runtime.IAdaptable;
9import org.eclipse.core.runtime.IProgressMonitor;
10import org.eclipse.emf.transaction.TransactionalEditingDomain;
11import org.eclipse.gmf.runtime.common.core.command.CommandResult;
12import org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand;
13import org.eclipse.gmf.runtime.notation.Edge;
14import org.eclipse.gmf.runtime.notation.View;
15 
16/**
17 * @generated
18 */
19public class PalladioComponentModelReorientConnectionViewCommand extends
20                AbstractTransactionalCommand {
21 
22        /**
23         * @generated
24         */
25        private IAdaptable edgeAdaptor;
26 
27        /**
28         * @generated
29         */
30        public PalladioComponentModelReorientConnectionViewCommand(
31                        TransactionalEditingDomain editingDomain, String label) {
32                super(editingDomain, label, null);
33        }
34 
35        /**
36         * @generated
37         */
38        public List getAffectedFiles() {
39                View view = (View) edgeAdaptor.getAdapter(View.class);
40                if (view != null) {
41                        return getWorkspaceFiles(view);
42                }
43                return super.getAffectedFiles();
44        }
45 
46        /**
47         * @generated
48         */
49        public IAdaptable getEdgeAdaptor() {
50                return edgeAdaptor;
51        }
52 
53        /**
54         * @generated
55         */
56        public void setEdgeAdaptor(IAdaptable edgeAdaptor) {
57                this.edgeAdaptor = edgeAdaptor;
58        }
59 
60        /**
61         * @generated
62         */
63        protected CommandResult doExecuteWithResult(
64                        IProgressMonitor progressMonitor, IAdaptable info) {
65                assert null != edgeAdaptor : "Null child in PalladioComponentModelReorientConnectionViewCommand"; //$NON-NLS-1$
66                Edge edge = (Edge) getEdgeAdaptor().getAdapter(Edge.class);
67                assert null != edge : "Null edge in PalladioComponentModelReorientConnectionViewCommand"; //$NON-NLS-1$
68                View tempView = edge.getSource();
69                edge.setSource(edge.getTarget());
70                edge.setTarget(tempView);
71                return CommandResult.newOKCommandResult();
72        }
73}

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