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