Search in sources :

Example 1 with ExportWizard

use of name.abuchen.portfolio.ui.wizards.datatransfer.ExportWizard in project portfolio by buchen.

the class ExportHandler method execute.

@Execute
public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart part, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) {
    Client client = MenuHelper.getActiveClient(part);
    if (client == null)
        return;
    Dialog dialog = new WizardDialog(shell, new ExportWizard(client));
    dialog.open();
}
Also used : Dialog(org.eclipse.jface.dialogs.Dialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) Client(name.abuchen.portfolio.model.Client) WizardDialog(org.eclipse.jface.wizard.WizardDialog) ExportWizard(name.abuchen.portfolio.ui.wizards.datatransfer.ExportWizard) CanExecute(org.eclipse.e4.core.di.annotations.CanExecute) Execute(org.eclipse.e4.core.di.annotations.Execute)

Aggregations

Client (name.abuchen.portfolio.model.Client)1 ExportWizard (name.abuchen.portfolio.ui.wizards.datatransfer.ExportWizard)1 CanExecute (org.eclipse.e4.core.di.annotations.CanExecute)1 Execute (org.eclipse.e4.core.di.annotations.Execute)1 Dialog (org.eclipse.jface.dialogs.Dialog)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1