Package org.jbpm.ui.wizard

Source Code of org.jbpm.ui.wizard.ExportParWizard

package org.jbpm.ui.wizard;

import org.eclipse.jface.dialogs.IDialogSettings;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.IExportWizard;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.jbpm.ui.DesignerPlugin;
import org.jbpm.ui.resource.Messages;

public class ExportParWizard extends Wizard implements IExportWizard {
    private IStructuredSelection selection;

    private ExportParWizardPage page;

    public ExportParWizard() {
        AbstractUIPlugin plugin = DesignerPlugin.getDefault();
        IDialogSettings workbenchSettings = plugin.getDialogSettings();
        IDialogSettings section = workbenchSettings.getSection("ParExportWizard");
        if (section == null)
            section = workbenchSettings.addNewSection("ParExportWizard");
        setDialogSettings(section);
    }

    public void init(IWorkbench workbench, IStructuredSelection selection) {
        this.selection = selection;
        setNeedsProgressMonitor(true);
        setWindowTitle(Messages.getString("ExportParWizard.wizard.title"));
    }

    @Override
    public void addPages() {
        super.addPages();
        page = new ExportParWizardPage(selection);
        addPage(page);
    }

    @Override
    public boolean performFinish() {
        return page.finish();
    }

}
TOP

Related Classes of org.jbpm.ui.wizard.ExportParWizard

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.