1 7 package com.bull.eclipse.jonas.actions; 8 9 10 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 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 |