Example usage for org.eclipse.jface.wizard Wizard setDialogSettings

List of usage examples for org.eclipse.jface.wizard Wizard setDialogSettings

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard Wizard setDialogSettings.

Prototype

public void setDialogSettings(IDialogSettings settings) 

Source Link

Document

Sets the dialog settings for this wizard.

Usage

From source file:ac.soton.eventb.classdiagrams.diagram.part.ClassdiagramsDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog./*w w  w  . jav a2  s  . c o m*/
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = ClassdiagramsDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:ac.soton.eventb.statemachines.diagram.part.StatemachinesDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog./*w  ww .  ja v a 2 s . c o  m*/
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = StatemachinesDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:ac.soton.fmusim.components.diagram.part.ComponentsDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog./*ww w.  j  a  v  a 2s . c  om*/
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = ComponentsDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:ac.soton.multisim.diagram.part.MultisimDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog.//from   w  ww .ja v  a  2  s .c o  m
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = MultisimDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:crosswalk.diagram.part.CrosswalkDiagramEditorUtil.java

License:Apache License

/**
 * Runs the wizard in a dialog./*from w w  w.  j  a  v a2  s  . com*/
 *
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = CrosswalkDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:de.gulden.modeling.wave.diagram.part.WaveDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog.//from  w ww .j a  v  a  2s . c  om
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = WaveDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:de.hentschel.visualdbc.dbcmodel.diagram.part.DbCDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog.//from  w ww. j  a  va 2 s .  co  m
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = DbCDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:de.quamoco.qm.diagram.part.QmDiagramEditorUtil.java

License:Apache License

/**
 * Runs the wizard in a dialog./*from   w  w w  . ja  va 2s  .com*/
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = QmDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:de.tud.cs.st.vespucci.vespucci_model.diagram.part.VespucciDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog.//from   w w  w  .  ja v a2s . c om
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = de.tud.cs.st.vespucci.vespucci_model.diagram.part.VespucciDiagramEditorPlugin
            .getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}

From source file:edu.toronto.cs.se.mmint.mid.diagram.part.MIDDiagramEditorUtil.java

License:Open Source License

/**
 * Runs the wizard in a dialog.//from  ww w .j  a  v  a  2  s  .c om
 * 
 * @generated
 */
public static void runWizard(Shell shell, Wizard wizard, String settingsKey) {
    IDialogSettings pluginDialogSettings = MIDDiagramEditorPlugin.getInstance().getDialogSettings();
    IDialogSettings wizardDialogSettings = pluginDialogSettings.getSection(settingsKey);
    if (wizardDialogSettings == null) {
        wizardDialogSettings = pluginDialogSettings.addNewSection(settingsKey);
    }
    wizard.setDialogSettings(wizardDialogSettings);
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.create();
    dialog.getShell().setSize(Math.max(500, dialog.getShell().getSize().x), 500);
    dialog.open();
}