Search in sources :

Example 1 with ExternalProjectImportWizard

use of org.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizard in project tdi-studio-se by Talend.

the class ImportProjectsAction method run.

public void run() {
    ExternalProjectImportWizard processWizard = new TalendExternalProjectImportWizard();
    // Set the "Copy projects into workspace" value default as true:
    IDialogSettings dialogSettings = processWizard.getDialogSettings();
    if (dialogSettings.get(STORE_COPY_PROJECT) == null) {
        dialogSettings.put(STORE_COPY_PROJECT, true);
    }
    Shell activeShell = Display.getCurrent().getActiveShell();
    WizardDialog dialog = new WizardDialog(activeShell, processWizard);
    processWizard.setWindowTitle(ACTION_TITLE);
    dialog.create();
    dialog.open();
}
Also used : ExternalProjectImportWizard(org.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizard) TalendExternalProjectImportWizard(org.talend.repository.ui.wizards.newproject.copyfromeclipse.TalendExternalProjectImportWizard) Shell(org.eclipse.swt.widgets.Shell) IDialogSettings(org.eclipse.jface.dialogs.IDialogSettings) WizardDialog(org.eclipse.jface.wizard.WizardDialog) TalendExternalProjectImportWizard(org.talend.repository.ui.wizards.newproject.copyfromeclipse.TalendExternalProjectImportWizard)

Aggregations

IDialogSettings (org.eclipse.jface.dialogs.IDialogSettings)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 Shell (org.eclipse.swt.widgets.Shell)1 ExternalProjectImportWizard (org.eclipse.ui.wizards.datatransfer.ExternalProjectImportWizard)1 TalendExternalProjectImportWizard (org.talend.repository.ui.wizards.newproject.copyfromeclipse.TalendExternalProjectImportWizard)1