Java 类org.eclipse.ui.actions.ExportResourcesAction 实例源码

项目:translationstudio8    文件:PortingActionProvider.java   
public void init(ICommonActionExtensionSite anExtensionSite) {

        Assert.isTrue(!disposed);

        if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) {

            IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite
                    .getViewSite()).getWorkbenchWindow();
            importAction = new ImportResourcesAction(window);
            importAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ImportResourcesMenu_label);
            exportAction = new ExportResourcesAction(window);
            exportAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ExportResourcesMenu_label);
            importWizardActionGroup = new WizardActionGroup(window, PlatformUI
                    .getWorkbench().getImportWizardRegistry(),
                    WizardActionGroup.TYPE_IMPORT, anExtensionSite.getContentService());
            exportWizardActionGroup = new WizardActionGroup(window, PlatformUI
                    .getWorkbench().getExportWizardRegistry(),
                    WizardActionGroup.TYPE_EXPORT, anExtensionSite.getContentService());
            contribute = true;
        }
    }
项目:tmxeditor8    文件:PortingActionProvider.java   
public void init(ICommonActionExtensionSite anExtensionSite) {

        Assert.isTrue(!disposed);

        if (anExtensionSite.getViewSite() instanceof ICommonViewerWorkbenchSite) {

            IWorkbenchWindow window = ((ICommonViewerWorkbenchSite) anExtensionSite
                    .getViewSite()).getWorkbenchWindow();
            importAction = new ImportResourcesAction(window);
            importAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ImportResourcesMenu_label);
            exportAction = new ExportResourcesAction(window);
            exportAction.setText(WorkbenchNavigatorMessages.PortingActionProvider_ExportResourcesMenu_label);
            importWizardActionGroup = new WizardActionGroup(window, PlatformUI
                    .getWorkbench().getImportWizardRegistry(),
                    WizardActionGroup.TYPE_IMPORT, anExtensionSite.getContentService());
            exportWizardActionGroup = new WizardActionGroup(window, PlatformUI
                    .getWorkbench().getExportWizardRegistry(),
                    WizardActionGroup.TYPE_EXPORT, anExtensionSite.getContentService());
            contribute = true;
        }
    }
项目:Eclipse-Postfix-Code-Completion    文件:ImportActionGroup.java   
/**
 * Creates a new <code>ImportActionGroup</code>. The group
 * requires that the selection provided by the part's selection provider
 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param part the view part that owns this action group
 */
public ImportActionGroup(IViewPart part) {
    IWorkbenchWindow workbenchWindow = part.getSite().getWorkbenchWindow();
    fImportAction= new ImportResourcesAction(workbenchWindow);
    fExportAction= new ExportResourcesAction(workbenchWindow);
}
项目:Eclipse-Postfix-Code-Completion-Juno38    文件:ImportActionGroup.java   
/**
 * Creates a new <code>ImportActionGroup</code>. The group
 * requires that the selection provided by the part's selection provider
 * is of type <code>org.eclipse.jface.viewers.IStructuredSelection</code>.
 *
 * @param part the view part that owns this action group
 */
public ImportActionGroup(IViewPart part) {
    IWorkbenchWindow workbenchWindow = part.getSite().getWorkbenchWindow();
    fImportAction= new ImportResourcesAction(workbenchWindow);
    fExportAction= new ExportResourcesAction(workbenchWindow);
}