blob: 5b8ccd6da297e62ed1dc2da30d33cc07b6251926 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2003 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.providers.internal;
import org.eclipse.jface.action.IAction;
import org.eclipse.gmf.runtime.common.ui.services.action.contributionitem.AbstractContributionItemProvider;
import org.eclipse.gmf.runtime.common.ui.util.IWorkbenchPartDescriptor;
import org.eclipse.gmf.runtime.diagram.ui.actions.internal.PageSetupAction;
/**
* Add the page setup action.
*
* @author Wayne Diu, wdiu
*/
public class PrintingContributionItemProvider
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(PageSetupAction.ID))
return new PageSetupAction();
return super.createAction(actionId, partDescriptor);
}
}