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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelDiagramActionBarContributor.java]

nameclass, %method, %block, %line, %
PalladioComponentModelDiagramActionBarContributor.java0%   (0/1)0%   (0/5)0%   (0/44)0%   (0/11)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelDiagramActionBarContributor0%   (0/1)0%   (0/5)0%   (0/44)0%   (0/11)
<static initializer> 0%   (0/1)0%   (0/8)0%   (0/1)
PalladioComponentModelDiagramActionBarContributor (): void 0%   (0/1)0%   (0/3)0%   (0/1)
getEditorClass (): Class 0%   (0/1)0%   (0/2)0%   (0/1)
getEditorId (): String 0%   (0/1)0%   (0/2)0%   (0/1)
init (IActionBars, IWorkbenchPage): void 0%   (0/1)0%   (0/29)0%   (0/8)

1/*
2 *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.composite.part;
5 
6import org.eclipse.gmf.runtime.diagram.ui.parts.DiagramActionBarContributor;
7import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.EnhancedPrintActionHelper;
8import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.RenderedPrintPreviewAction;
9import org.eclipse.jface.action.IAction;
10import org.eclipse.jface.action.IMenuManager;
11import org.eclipse.ui.IActionBars;
12import org.eclipse.ui.IWorkbenchActionConstants;
13import org.eclipse.ui.IWorkbenchPage;
14 
15/**
16 * @generated
17 */
18public class PalladioComponentModelDiagramActionBarContributor extends
19                DiagramActionBarContributor {
20 
21        /**
22         * @generated
23         */
24        protected Class getEditorClass() {
25                return PalladioComponentModelDiagramEditor.class;
26        }
27 
28        /**
29         * @generated
30         */
31        protected String getEditorId() {
32                return PalladioComponentModelDiagramEditor.ID;
33        }
34 
35        /**
36         * @generated
37         */
38        public void init(IActionBars bars, IWorkbenchPage page) {
39                super.init(bars, page);
40                // print preview
41                IMenuManager fileMenu = bars.getMenuManager().findMenuUsingPath(
42                                IWorkbenchActionConstants.M_FILE);
43                assert fileMenu != null;
44                IAction printPreviewAction = new RenderedPrintPreviewAction(
45                                new EnhancedPrintActionHelper());
46                fileMenu.insertBefore("print", printPreviewAction); //$NON-NLS-1$
47        }
48}

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