KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > language > LanguageWatcherRestartDialog


1 /*
2  * Created on Jan 5, 2005
3  * by alex
4  *
5  */

6 package com.nightlabs.ipanema.language;
7
8 import org.eclipse.jface.dialogs.Dialog;
9 import org.eclipse.swt.SWT;
10 import org.eclipse.swt.widgets.Composite;
11 import org.eclipse.swt.widgets.Control;
12 import org.eclipse.swt.widgets.Shell;
13
14 import com.nightlabs.ipanema.base.IpanemaBasePlugin;
15
16 /**
17  * Shows a question to the user wheather he wants
18  * to restart with a different language.
19  * If OK is pressed then the new language will be set
20  * and the workbench will be restarted.
21  *
22  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
23  */

24 public class LanguageWatcherRestartDialog extends Dialog {
25
26     /**
27      * @param parentShell
28      */

29     public LanguageWatcherRestartDialog(Shell parentShell) {
30         super(parentShell);
31     }
32     
33     protected Control createDialogArea(Composite parent) {
34         Composite comp = new Composite(parent,SWT.NONE);
35         
36         return comp;
37     }
38     
39     protected void okPressed() {
40         super.okPressed();
41     }
42     
43     protected void configureShell(Shell newShell) {
44         super.configureShell(newShell);
45         newShell.setText(IpanemaBasePlugin.getResourceString("language.watcher.restartdialog.title"));
46     }
47 }
48
Popular Tags