Search in sources :

Example 1 with IExportWizard

use of org.eclipse.ui.IExportWizard in project translationstudio8 by heartsome.

the class ExportHandler method execute.

public Object execute(ExecutionEvent event) throws ExecutionException {
    IStructuredSelection currentSelection = getSelectionToUse(event);
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
    IExportWizard wizard = getExportWizard(event);
    wizard.init(window.getWorkbench(), currentSelection);
    TSWizardDialog dialog = new TSWizardDialog(window.getShell(), wizard);
    dialog.create();
    dialog.open();
    return null;
}
Also used : IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) IExportWizard(org.eclipse.ui.IExportWizard) IStructuredSelection(org.eclipse.jface.viewers.IStructuredSelection) TSWizardDialog(net.heartsome.cat.common.ui.wizard.TSWizardDialog)

Aggregations

TSWizardDialog (net.heartsome.cat.common.ui.wizard.TSWizardDialog)1 IStructuredSelection (org.eclipse.jface.viewers.IStructuredSelection)1 IExportWizard (org.eclipse.ui.IExportWizard)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1