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

COVERAGE SUMMARY FOR SOURCE FILE [PalladioComponentModelDiagramActionBarContributor.java]

nameclass, %method, %block, %line, %
PalladioComponentModelDiagramActionBarContributor.java0%   (0/1)0%   (0/5)0%   (0/76)0%   (0/18)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class PalladioComponentModelDiagramActionBarContributor0%   (0/1)0%   (0/5)0%   (0/76)0%   (0/18)
<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/61)0%   (0/15)

1/*
2 *Copyright 2006 SDQ Research Group, University of Karlsruhe (TH)
3 */
4package de.uka.ipd.sdq.pcm.gmf.seff.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.GroupMarker;
10import org.eclipse.jface.action.IAction;
11import org.eclipse.jface.action.IMenuManager;
12import org.eclipse.ui.IActionBars;
13import org.eclipse.ui.IWorkbenchActionConstants;
14import org.eclipse.ui.IWorkbenchPage;
15 
16/**
17 * @generated
18 */
19public class PalladioComponentModelDiagramActionBarContributor extends
20                DiagramActionBarContributor {
21 
22        /**
23         * @generated
24         */
25        protected Class getEditorClass() {
26                return SeffDiagramEditor.class;
27        }
28 
29        /**
30         * @generated
31         */
32        protected String getEditorId() {
33                return SeffDiagramEditor.ID;
34        }
35 
36        /**
37         * @generated
38         */
39        public void init(IActionBars bars, IWorkbenchPage page) {
40                super.init(bars, page);
41                // print preview
42                IMenuManager fileMenu = bars.getMenuManager().findMenuUsingPath(
43                                IWorkbenchActionConstants.M_FILE);
44                assert fileMenu != null;
45                IAction printPreviewAction = new RenderedPrintPreviewAction(
46                                new EnhancedPrintActionHelper());
47                fileMenu.insertBefore("print", printPreviewAction); //$NON-NLS-1$
48                IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(
49                                IWorkbenchActionConstants.M_EDIT);
50                assert editMenu != null;
51                if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
52                        editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
53                }
54                IAction validateAction = new ValidateAction(page);
55                editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
56        }
57}

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