KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > actions > JonasBaseCreation


1 /*
2  * Created on 4 juin 2003
3  *
4  * To change the template for this generated file go to
5  * Window>Preferences>Java>Code Generation>Code and Comments
6  */

7 package com.bull.eclipse.jonas.actions;
8
9
10 /**
11  * @author Emmanuel Rias
12  *
13  * To change the template for this generated type comment go to
14  * Window>Preferences>Java>Code Generation>Code and Comments
15  */

16
17 import org.eclipse.core.runtime.CoreException;
18 import org.eclipse.jdt.internal.ui.JavaPlugin;
19 import org.eclipse.jface.dialogs.InputDialog;
20
21 import com.bull.eclipse.jonas.CreateJonasBase;
22 import com.bull.eclipse.jonas.JonasLauncherPlugin;
23 import com.bull.eclipse.jonas.JonasPluginResources;
24
25 public class JonasBaseCreation implements JonasPluginResources {
26
27     public static void createJonasBase() {
28
29 /**TODO IPath jonas_root = new Path(JonasLauncherPlugin.getDefault().getJonasDir());
30         if (jonas_root.isEmpty()) {
31             ErrorDialog md = new ErrorDialog(
32                         JavaPlugin.getActiveWorkbenchShell(),
33                         JonasPluginResources.JONAS_BASE_ERROR_LABEL,
34                         MessageDialog.ERROR,
35                         IStatus.);
36         }
37 **/

38
39         InputDialog id = new InputDialog(
40                         JavaPlugin.getActiveWorkbenchShell(),
41                         JonasPluginResources.JONAS_BASE_CREATION_LABEL,
42                         JonasPluginResources.JONAS_BASE_DIR_LABEL,
43                         JonasLauncherPlugin.getDefault().getJonasDir(),
44                         null);
45
46         if( id.open()==org.eclipse.jface.window.Window.OK ) {
47             try {
48                 CreateJonasBase.createJonasServer(id.getValue());
49             } catch (CoreException ce) {
50                 JonasLauncherPlugin.log(ce.getMessage());
51             }
52         }
53
54
55     }
56 }
57
Popular Tags