01: /*
02: *Copyright 2007 Wilken GmbH
03: */
04: package newprocess.diagram.providers;
05:
06: import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider;
07:
08: import org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor;
09:
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 New_processContributionItemProvider 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: }
|