KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > compare > internal > patch > PatchWizardDialog


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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 JavaDoc PATCH_WIZARD_SETTINGS_SECTION = "PatchWizard"; //$NON-NLS-1$
22

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