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