New_processContributionItemProvider.java :  » Workflow-Engines » osbl-1_0 » newprocess » diagram » providers » Java Open Source

Java Open Source » Workflow Engines » osbl 1_0 
osbl 1_0 » newprocess » diagram » providers » New_processContributionItemProvider.java
/*
 *Copyright 2007 Wilken GmbH
 */
package newprocess.diagram.providers;

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.printing.actions.PrintPreviewAction;

import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.EnhancedPrintActionHelper;
import org.eclipse.gmf.runtime.diagram.ui.printing.render.actions.RenderedPrintPreviewAction;

import org.eclipse.jface.action.IAction;

/**
 * @generated
 */
public class New_processContributionItemProvider extends
    AbstractContributionItemProvider {

  /**
   * @generated
   */
  protected IAction createAction(String actionId,
      IWorkbenchPartDescriptor partDescriptor) {
    if (actionId.equals(PrintPreviewAction.ID)) {
      return new RenderedPrintPreviewAction(
          new EnhancedPrintActionHelper());
    }
    return super.createAction(actionId, partDescriptor);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.