1 11 package org.eclipse.compare.internal.patch; 12 13 import org.eclipse.compare.internal.CompareUIPlugin; 14 import org.eclipse.jface.dialogs.IDialogSettings; 15 import org.eclipse.jface.wizard.IWizard; 16 import org.eclipse.jface.wizard.WizardDialog; 17 import org.eclipse.swt.SWT; 18 import org.eclipse.swt.widgets.Shell; 19 20 public class PatchWizardDialog extends WizardDialog { 21 private static final String PATCH_WIZARD_SETTINGS_SECTION = "PatchWizard"; 23 public PatchWizardDialog(Shell parent, IWizard wizard) { 24 super(parent, wizard); 25 26 setShellStyle(getShellStyle() | SWT.RESIZE); 27 setMinimumPageSize(700, 500); 28 } 29 30 protected IDialogSettings getDialogBoundsSettings() { 31 IDialogSettings settings = CompareUIPlugin.getDefault().getDialogSettings(); 32 IDialogSettings section = settings.getSection(PATCH_WIZARD_SETTINGS_SECTION); 33 if (section == null) { 34 section = settings.addNewSection(PATCH_WIZARD_SETTINGS_SECTION); 35 } 36 return section; 37 } 38 } 39 | Popular Tags |