1 | /* |
2 | *Copyright 2007, SDQ, IPD, Uni Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.composite.providers; |
5 | |
6 | import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider; |
7 | |
8 | import org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor; |
9 | |
10 | import org.eclipse.gmf.runtime.diagram.ui.printing.actions.PrintPreviewAction; |
11 | |
12 | import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.EnhancedPrintActionHelper; |
13 | import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.RenderedPrintPreviewAction; |
14 | |
15 | import org.eclipse.jface.action.IAction; |
16 | |
17 | /** |
18 | * @generated |
19 | */ |
20 | public class PalladioComponentModelContributionItemProvider extends |
21 | AbstractContributionItemProvider { |
22 | |
23 | /** |
24 | * @generated |
25 | */ |
26 | protected IAction createAction(String actionId, |
27 | IWorkbenchPartDescriptor partDescriptor) { |
28 | if (actionId.equals(PrintPreviewAction.ID)) { |
29 | return new RenderedPrintPreviewAction( |
30 | new EnhancedPrintActionHelper()); |
31 | } |
32 | return super.createAction(actionId, partDescriptor); |
33 | } |
34 | |
35 | } |