| /****************************************************************************** |
| * Copyright (c) 2008 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| ****************************************************************************/ |
| |
| package org.eclipse.gmf.runtime.diagram.ui.render.internal.providers; |
| |
| import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider; |
| import org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor; |
| import org.eclipse.jface.action.IAction; |
| |
| |
| /** |
| * This class is strictly temporary while we introduce the printing via the |
| * Print Service API. |
| * |
| * @author James Bruck (jbruck) |
| */ |
| public class PrintingExperimentalContributionItemProvider extends |
| AbstractContributionItemProvider { |
| |
| /** |
| * @see org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider#createAction(java.lang.String, org.eclipse.gmf.runtime.common.ui.services.contributionitem.IWorkbenchPartDescriptor) |
| */ |
| protected IAction createAction( |
| String actionId, |
| IWorkbenchPartDescriptor partDescriptor) { |
| |
| if (actionId.equals(PrintExperimentalAction.ID)) |
| return new PrintExperimentalAction(); |
| |
| return super.createAction(actionId, partDescriptor); |
| } |
| } |