List of usage examples for org.eclipse.jface.dialogs IDialogSettings getSection
IDialogSettings getSection(String sectionName);
From source file:ac.soton.eventb.classdiagrams.diagram.part.ClassdiagramsDiagramEditorUtil.java
License:Open Source License
/** * Runs the wizard in a dialog./*from w w w . ja v a 2 s .c om*/ * * @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./*from w w w . j a v a 2 s .c om*/ * * @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.// w w w . j av a 2 s. c o m * * @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 w w . ja v a 2 s .com * * @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:ar.com.tadp.xml.rinzo.core.refactors.rename.RenameTagInputPage.java
License:Open Source License
private void initDialogSettings() { IDialogSettings ds = XMLEditorPlugin.getDefault().getDialogSettings(); dialogSettings = ds.getSection(DS_KEY); if (dialogSettings == null) { dialogSettings = ds.addNewSection(DS_KEY); dialogSettings.put(DS_CURRENT_TAG, true); dialogSettings.put(DS_ALL_PARENT, false); dialogSettings.put(DS_ALL_PROJECTS, false); }/*from w ww. ja v a2 s . c o m*/ }
From source file:au.gov.ga.earthsci.eclipse.extras.ide.ChooseWorkspaceDialog.java
License:Open Source License
protected IDialogSettings getDialogBoundsSettings() { // If we were explicitly instructed to center on the monitor, then // do not provide any settings for retrieving a different location or, worse, // saving the centered location. if (centerOnMonitor) { return null; }/*w w w .j a va 2 s.c o m*/ IDialogSettings settings = Activator.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(DIALOG_SETTINGS_SECTION); if (section == null) { section = settings.addNewSection(DIALOG_SETTINGS_SECTION); } return section; }
From source file:ca.mcgill.cs.swevo.qualyzer.wizards.ProjectExportWizard.java
License:Open Source License
/** * Creates a wizard for exporting workspace resources to a zip file. *//* w ww.j a va 2s . c o m*/ public ProjectExportWizard() { IDialogSettings workbenchSettings = WorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = workbenchSettings.getSection("ProjectExportWizard"); //$NON-NLS-1$ if (section == null) { section = workbenchSettings.addNewSection("ProjectExportWizard"); //$NON-NLS-1$ } setDialogSettings(section); }
From source file:ca.mcgill.cs.swevo.qualyzer.wizards.ProjectImportWizard.java
License:Open Source License
/** * Constructor for ProjectImportWizard./* w ww. j a v a 2s. c o m*/ * * @param initialPath * Default path for wizard to import */ public ProjectImportWizard(String initialPath) { super(); this.fInitialPath = initialPath; setNeedsProgressMonitor(true); IDialogSettings workbenchSettings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings wizardSettings = workbenchSettings.getSection(EXTERNAL_PROJECT_SECTION); if (wizardSettings == null) { wizardSettings = workbenchSettings.addNewSection(EXTERNAL_PROJECT_SECTION); } setDialogSettings(wizardSettings); }
From source file:ca.usask.cs.srlab.simclipse.clone.comparison.CompareWithOtherResourceDialog.java
License:Open Source License
protected IDialogSettings getDialogBoundsSettings() { String sectionName = getClass().getName() + "_dialogBounds"; //$NON-NLS-1$ IDialogSettings settings = CompareUIPlugin.getDefault().getDialogSettings(); IDialogSettings section = settings.getSection(sectionName); if (section == null) section = settings.addNewSection(sectionName); return section; }
From source file:ccw.leiningen.NewLeiningenProjectWizard.java
License:Open Source License
/** * Creates a wizard for creating a new project resource in the workspace. *//*from w ww . j a v a2s. c o m*/ public NewLeiningenProjectWizard() { IDialogSettings workbenchSettings = IDEWorkbenchPlugin.getDefault().getDialogSettings(); IDialogSettings section = workbenchSettings.getSection("BasicNewProjectResourceWizard");//$NON-NLS-1$ if (section == null) { section = workbenchSettings.addNewSection("BasicNewProjectResourceWizard");//$NON-NLS-1$ } setDialogSettings(section); }