Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

This commit was manufactured by cvs2svn to create tag 'v20050209'.

  • Loading branch information...
commit 9a995c5bdb8107d4dd32fceb9ad547d18f6078f4 2 parents 1feb920 + bd9d633
authored

Showing 24 changed files with 29 additions and 1,438 deletions. Show diff stats Hide diff stats

  1. 22  plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/AntPublisher.java
  2. 24  .../org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericPublisher.java
  3. 31  ...clipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerBehaviour.java
  4. 8  plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLUtils.java
  5. 5  plugins/org.eclipse.jst.server.generic.modules/.cvsignore
  6. 28  plugins/org.eclipse.jst.server.generic.modules/.project
  7. 7  plugins/org.eclipse.jst.server.generic.ui/.classpath
  8. 5  plugins/org.eclipse.jst.server.generic.ui/.cvsignore
  9. 28  plugins/org.eclipse.jst.server.generic.ui/.project
  10. 10  plugins/org.eclipse.jst.server.generic.ui/build.properties
  11. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/obj16/lomboz.gif
  12. BIN  plugins/org.eclipse.jst.server.generic.ui/icons/wizban/logo.gif
  13. 4  plugins/org.eclipse.jst.server.generic.ui/plugin.properties
  14. 86  plugins/org.eclipse.jst.server.generic.ui/plugin.xml
  15. 66  ...st.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericLaunchConfigurationTabGroup.java
  16. 57  ...se.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorPartFactory.java
  17. 56  ...jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorSectionFactory.java
  18. 291  ...st.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerRuntimeWizardFragment.java
  19. 149  ...lipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerWizardFragment.java
  20. 73  ...rver.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/ServerDefinitionTypeAwareWizardFragment.java
  21. 332  ...eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/ServerTypeDefinitionGroup.java
  22. 63  plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/GenericServerUIMessages.java
  23. 8  .../org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/GenericServerUIMessages.properties
  24. 114  plugins/org.eclipse.jst.server.generic.ui/src/org/eclipse/jst/server/generic/ui/GenericUiPlugin.java
22  ...s/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/AntPublisher.java
@@ -83,7 +83,7 @@
83 83
      * @return
84 84
      */
85 85
     private File computeBuildFile() {
86  
-        Bundle bundle = Platform.getBundle(getServerRuntime().getConfigurationElementNamespace());
  86
+        Bundle bundle = Platform.getBundle(fServerRuntime.getConfigurationElementNamespace());
87 87
         File file = FileUtil.resolveFileFrom(bundle,getBuildFile());
88 88
         return file;
89 89
     }
@@ -104,7 +104,7 @@ private File computeBuildFile() {
104 104
      */
105 105
     private String[] doGetTargets(String dataname) {
106 106
         ArrayList list = new ArrayList();
107  
-        Iterator iterator = getServerRuntime().getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
  107
+        Iterator iterator = fServerRuntime.getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
108 108
         while(iterator.hasNext()){
109 109
             PublisherData data = (PublisherData)iterator.next();
110 110
             if(dataname.equals(data.getDataname())) {
@@ -125,17 +125,17 @@ private File computeBuildFile() {
125 125
     
126 126
     private String getModuleTypeId()
127 127
     {
128  
-        return getModule().getModuleType().getId();
  128
+        return fModule.getModuleType().getId();
129 129
     }
130 130
     
131 131
 	private String getBuildFile()
132 132
     {
133  
-        Iterator iterator = getServerRuntime().getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
  133
+        Iterator iterator = fServerRuntime.getPublisher(PUBLISHER_ID).getPublisherdata().iterator();
134 134
         while(iterator.hasNext())
135 135
         {
136 136
             PublisherData data = (PublisherData)iterator.next();
137 137
             if(DATA_NAME_BUILD_FILE.equals(data.getDataname()))
138  
-                return getServerRuntime().getResolver().resolveProperties(data.getDatavalue());
  138
+                return fServerRuntime.getResolver().resolveProperties(data.getDatavalue());
139 139
         }
140 140
         return null;
141 141
     }
@@ -143,12 +143,12 @@ private Map getPublishProperties()
143 143
 	{
144 144
         Map props = new HashMap();
145 145
         //publish dir
146  
-        Module module =  getServerRuntime().getModule(getModuleTypeId());
  146
+        Module module =  fServerRuntime.getModule(getModuleTypeId());
147 147
 		String modDir = module.getPublishDir();
148  
-		modDir = getServerRuntime().getResolver().resolveProperties(modDir);
  148
+		modDir = fServerRuntime.getResolver().resolveProperties(modDir);
149 149
 
150  
-		IWebModule webModule = (IWebModule)getModule().getAdapter(IWebModule.class);
151  
-        IEJBModule ejbModule = (IEJBModule)getModule().getAdapter(IEJBModule.class);
  150
+		IWebModule webModule = (IWebModule)fModule.getAdapter(IWebModule.class);
  151
+        IEJBModule ejbModule = (IEJBModule)fModule.getAdapter(IEJBModule.class);
152 152
 		String moduleName="unknownmodule";
153 153
         String moduleDir="";
154 154
         if(webModule!=null){    
@@ -156,7 +156,7 @@ private Map getPublishProperties()
156 156
             moduleDir = webModule.getLocation().toString();
157 157
         }
158 158
         if(ejbModule!=null){  
159  
-            moduleName = getModule().getName();
  159
+            moduleName = fModule.getName();
160 160
             moduleDir= ejbModule.getLocation().toString();
161 161
         }
162 162
 		props.put("module.name",moduleName);
@@ -172,7 +172,7 @@ private Map getPublishProperties()
172 172
 	 * @return
173 173
 	 */
174 174
 	private String guessModuleName(IWebModule webModule) {
175  
-		String moduleName = getModule().getName(); 
  175
+		String moduleName = fModule.getName(); 
176 176
 		//Default to project name but not a good guess
177 177
 		//may have blanks etc.
178 178
 		
24  ...g.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericPublisher.java
... ...
@@ -1,5 +1,6 @@
1 1
 package org.eclipse.jst.server.generic.internal.core;
2 2
 
  3
+import org.eclipse.core.runtime.CoreException;
3 4
 import org.eclipse.core.runtime.IProgressMonitor;
4 5
 import org.eclipse.core.runtime.IStatus;
5 6
 import org.eclipse.jst.server.generic.servertype.definition.ServerRuntime;
@@ -14,9 +15,9 @@
14 15
  */
15 16
 public abstract class GenericPublisher 
16 17
 {
17  
-    private IModule[] fParents;
18  
-    private IModule fModule;
19  
-    private ServerRuntime fServerRuntime;
  18
+    IModule[] fParents;
  19
+    IModule fModule;
  20
+    ServerRuntime fServerRuntime;
20 21
     
21 22
     protected void initialize(IModule[] parents, IModule module, ServerRuntime serverDefinition)
22 23
     {
@@ -25,9 +26,6 @@ protected void initialize(IModule[] parents, IModule module, ServerRuntime serve
25 26
         fServerRuntime = serverDefinition;
26 27
     }
27 28
    /**
28  
-    * Called by the generic server implementation when a module is 
29  
-    * removed form the server instance. 
30  
-    * Subclasses may extend this method to perform their own module removal
31 29
     * 
32 30
     * @param module
33 31
     * @param monitor
@@ -36,24 +34,12 @@ protected void initialize(IModule[] parents, IModule module, ServerRuntime serve
36 34
    public abstract IStatus[] unpublish(IProgressMonitor monitor);
37 35
     
38 36
     /**
39  
-     * Called by the generic server implementation when a publish module 
40  
-     * event occurs. 
41  
-     * Subclasses may extend this method to perform their own publishing
42 37
      * 
43 38
      * @param resource
44 39
      * @param monitor
45 40
      * @return
  41
+     * @throws CoreException
46 42
      */
47 43
     public abstract IStatus[] publish(IModuleArtifact[] resource,
48 44
             IProgressMonitor monitor);
49  
-   
50  
-    public IModule getModule() {
51  
-        return fModule;
52  
-    }
53  
-    public IModule[] getParents() {
54  
-        return fParents;
55  
-    }
56  
-    public ServerRuntime getServerRuntime() {
57  
-        return fServerRuntime;
58  
-    }
59 45
 }
31  ...pse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/core/GenericServerBehaviour.java
@@ -57,7 +57,8 @@
57 57
      * @see org.eclipse.wst.server.core.model.ServerBehaviourDelegate#publishServer(org.eclipse.core.runtime.IProgressMonitor)
58 58
      */
59 59
     public void publishServer(int kind, IProgressMonitor monitor) throws CoreException {
60  
-        
  60
+        // TODO Auto-generated method stub
  61
+
61 62
     }
62 63
 
63 64
     /* (non-Javadoc)
@@ -284,17 +285,13 @@ public void setupLaunchConfiguration(
284 285
         workingCopy.setAttribute(
285 286
                 IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY,
286 287
                 getWorkingDirectory());
287  
-        
288  
-        String existingProgArgs  = workingCopy.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, (String)null);
289  
-        String serverProgArgs =  getProgramArguments();
290  
-        if(existingProgArgs==null || existingProgArgs.indexOf(serverProgArgs)<0) {
291  
-            workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,serverProgArgs);
292  
-        }
293  
-        String existingVMArgs = workingCopy.getAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,(String)null);
294  
-        String serverVMArgs= getVmArguments();
295  
-        if(existingVMArgs==null || existingVMArgs.indexOf(serverVMArgs)<0) {
296  
-            workingCopy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,serverVMArgs);
297  
-        }
  288
+        workingCopy.setAttribute(
  289
+                IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS,
  290
+                getProgramArguments());
  291
+        workingCopy.setAttribute(
  292
+                IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,
  293
+                getVmArguments());
  294
+    
298 295
     }
299 296
     /**
300 297
     	 * Setup for starting the server.
@@ -394,14 +391,4 @@ public void initialize() {
394 391
       super.initialize();
395 392
       setModules(getServer().getModules());
396 393
     }
397  
-    public void publishFinish(IProgressMonitor monitor) throws CoreException {
398  
-        IModule[] modules = this.getServer().getModules();
399  
-        boolean allpublished= true;
400  
-        for (int i = 0; i < modules.length; i++) {
401  
-            if(this.getServer().getModulePublishState(modules[i])!=IServer.PUBLISH_STATE_NONE)
402  
-                allpublished=false;
403  
-        }
404  
-        if(allpublished)
405  
-            setServerPublishState(IServer.PUBLISH_STATE_NONE);
406  
-    }
407 394
 }
8  plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/internal/xml/XMLUtils.java
@@ -39,17 +39,16 @@
39 39
 import org.eclipse.core.runtime.IStatus;
40 40
 import org.eclipse.core.runtime.Platform;
41 41
 import org.eclipse.core.runtime.Status;
42  
-import org.eclipse.emf.common.util.URI;
43 42
 import org.eclipse.emf.common.util.WrappedException;
44 43
 import org.eclipse.emf.ecore.resource.Resource;
45 44
 import org.eclipse.emf.ecore.resource.ResourceSet;
46 45
 import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
  46
+import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
47 47
 import org.eclipse.jst.server.generic.core.CorePlugin;
48 48
 import org.eclipse.jst.server.generic.internal.core.util.ExtensionPointUtil;
49 49
 import org.eclipse.jst.server.generic.internal.core.util.FileUtil;
50 50
 import org.eclipse.jst.server.generic.servertype.definition.ServerRuntime;
51 51
 import org.eclipse.jst.server.generic.servertype.definition.ServerTypePackage;
52  
-import org.eclipse.jst.server.generic.servertype.definition.util.ServerTypeResourceFactoryImpl;
53 52
 import org.osgi.framework.Bundle;
54 53
 
55 54
 public class XMLUtils {
@@ -102,12 +101,13 @@ public ServerRuntime readFile(File file) {
102 101
         // stand-alone!
103 102
         resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
104 103
                 .put(Resource.Factory.Registry.DEFAULT_EXTENSION,
105  
-                        new ServerTypeResourceFactoryImpl());
  104
+                        new XMIResourceFactoryImpl());
106 105
 
107 106
          ServerTypePackage gstPack = ServerTypePackage.eINSTANCE;
108 107
 
109 108
         // Get the URI of the model file.
110  
-        URI fileURI = URI.createFileURI(file.getAbsolutePath());
  109
+        org.eclipse.emf.common.util.URI fileURI = org.eclipse.emf.common.util.URI
  110
+                .createFileURI(file.getAbsolutePath());
111 111
 
112 112
         // Demand load the resource for this file.
113 113
         Resource resource = null;
5  plugins/org.eclipse.jst.server.generic.modules/.cvsignore
... ...
@@ -1,5 +0,0 @@
1  
-bin
2  
-build.xml
3  
-commonmodules.jar
4  
-org.eclipse.jst.server.generic.modules_1.0.0.jar
5  
-temp.folder
28  plugins/org.eclipse.jst.server.generic.modules/.project
... ...
@@ -1,28 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<projectDescription>
3  
-	<name>org.eclipse.jst.server.generic.ui</name>
4  
-	<comment></comment>
5  
-	<projects>
6  
-	</projects>
7  
-	<buildSpec>
8  
-		<buildCommand>
9  
-			<name>org.eclipse.jdt.core.javabuilder</name>
10  
-			<arguments>
11  
-			</arguments>
12  
-		</buildCommand>
13  
-		<buildCommand>
14  
-			<name>org.eclipse.pde.ManifestBuilder</name>
15  
-			<arguments>
16  
-			</arguments>
17  
-		</buildCommand>
18  
-		<buildCommand>
19  
-			<name>org.eclipse.pde.SchemaBuilder</name>
20  
-			<arguments>
21  
-			</arguments>
22  
-		</buildCommand>
23  
-	</buildSpec>
24  
-	<natures>
25  
-		<nature>org.eclipse.pde.PluginNature</nature>
26  
-		<nature>org.eclipse.jdt.core.javanature</nature>
27  
-	</natures>
28  
-</projectDescription>
7  plugins/org.eclipse.jst.server.generic.ui/.classpath
... ...
@@ -1,7 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<classpath>
3  
-	<classpathentry kind="src" path="src"/>
4  
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5  
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6  
-	<classpathentry kind="output" path="bin"/>
7  
-</classpath>
5  plugins/org.eclipse.jst.server.generic.ui/.cvsignore
... ...
@@ -1,5 +0,0 @@
1  
-bin
2  
-build.xml
3  
-genericui.jar
4  
-org.eclipse.jst.server.generic.ui_1.0.0.jar
5  
-temp.folder
28  plugins/org.eclipse.jst.server.generic.ui/.project
... ...
@@ -1,28 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<projectDescription>
3  
-	<name>org.eclipse.jst.server.generic.ui</name>
4  
-	<comment></comment>
5  
-	<projects>
6  
-	</projects>
7  
-	<buildSpec>
8  
-		<buildCommand>
9  
-			<name>org.eclipse.jdt.core.javabuilder</name>
10  
-			<arguments>
11  
-			</arguments>
12  
-		</buildCommand>
13  
-		<buildCommand>
14  
-			<name>org.eclipse.pde.ManifestBuilder</name>
15  
-			<arguments>
16  
-			</arguments>
17  
-		</buildCommand>
18  
-		<buildCommand>
19  
-			<name>org.eclipse.pde.SchemaBuilder</name>
20  
-			<arguments>
21  
-			</arguments>
22  
-		</buildCommand>
23  
-	</buildSpec>
24  
-	<natures>
25  
-		<nature>org.eclipse.pde.PluginNature</nature>
26  
-		<nature>org.eclipse.jdt.core.javanature</nature>
27  
-	</natures>
28  
-</projectDescription>
10  plugins/org.eclipse.jst.server.generic.ui/build.properties
... ...
@@ -1,10 +0,0 @@
1  
-source.genericui.jar = src/
2  
-output.genericui.jar = bin/
3  
-bin.includes = plugin.xml,\
4  
-               genericui.jar,\
5  
-               icons/,\
6  
-               plugin.properties
7  
-src.includes = icons/,\
8  
-               plugin.xml,\
9  
-               plugin.properties,\
10  
-               src/
BIN  plugins/org.eclipse.jst.server.generic.ui/icons/obj16/lomboz.gif
BIN  plugins/org.eclipse.jst.server.generic.ui/icons/wizban/logo.gif
4  plugins/org.eclipse.jst.server.generic.ui/plugin.properties
... ...
@@ -1,4 +0,0 @@
1  
-pluginName=Generic Server Plugin UI
2  
-providerName=Eteration.com
3  
-pluginDescription=UI Components for the generic server plugin.
4  
-
86  plugins/org.eclipse.jst.server.generic.ui/plugin.xml
... ...
@@ -1,86 +0,0 @@
1  
-<?xml version="1.0" encoding="UTF-8"?>
2  
-<?eclipse version="3.0"?>
3  
-<plugin
4  
-   id="org.eclipse.jst.server.generic.ui"
5  
-   name="%pluginName"
6  
-   version="1.0.0"
7  
-   provider-name="%providerName"
8  
-   class="org.eclipse.jst.server.generic.ui.GenericUiPlugin"
9  
-   description="%pluginDescription">
10  
-
11  
-   <runtime>
12  
-      <library name="genericui.jar">
13  
-         <export name="*"/>
14  
-      </library>
15  
-   </runtime>
16  
-
17  
-   <requires>
18  
-      <import plugin="org.eclipse.ui"/>
19  
-      <import plugin="org.eclipse.core.runtime"/>
20  
-      <import plugin="org.eclipse.wst.server.ui"/>
21  
-       <import plugin="org.eclipse.debug.ui"/>
22  
-      <import plugin="org.eclipse.jdt.debug.ui"/>
23  
-      <import plugin="org.eclipse.jst.server.generic.core"/>
24  
-      <import plugin="org.eclipse.wst.server.core" />
25  
-   </requires>
26  
-
27  
- <extension
28  
-       point="org.eclipse.wst.server.ui.wizardFragments">
29  
-     <fragment
30  
-        id="org.eclipse.jst.server.generic.runtime"
31  
-        typeIds="org.eclipse.jst.server.generic.runtime"
32  
-        class="org.eclipse.jst.server.generic.internal.ui.GenericServerRuntimeWizardFragment"/>       
33  
- </extension>
34  
-
35  
-<extension
36  
-       point="org.eclipse.wst.server.ui.wizardFragments">
37  
-     <fragment
38  
-        id="org.eclipse.jst.server.generic.server"
39  
-        typeIds="org.eclipse.jst.server.generic"
40  
-        class="org.eclipse.jst.server.generic.internal.ui.GenericServerWizardFragment"/>       
41  
- </extension>
42  
-  <extension point="org.eclipse.wst.server.ui.editorPages">
43  
-      <page
44  
-         id="org.eclipse.jst.server.generic.configuration.editor.webmodule"
45  
-         order="20"
46  
-         name="Lomboz server Edit"
47  
-         typeIds="org.eclipse.jst.server.generic.*"
48  
-         class="org.eclipse.jst.server.generic.internal.ui.GenericServerEditorPartFactory"/>
49  
-   </extension>
50  
-   
51  
-    <extension point="org.eclipse.wst.server.ui.editorPageSections">
52  
-      <section
53  
-         id="org.eclipse.jst.server.generic.editor.general"
54  
-         order="0"
55  
-         insertionId="org.eclipse.wst.server.editor.overview.left"
56  
-         typeIds="org.eclipse.jst.server.generic.*"
57  
-         class="org.eclipse.jst.server.generic.internal.ui.GenericServerEditorSectionFactory"/>       
58  
-   </extension>
59  
-   <extension point="org.eclipse.wst.server.ui.serverImages">
60  
-      <image
61  
-         id="org.eclipse.jst.server.generic.image"
62  
-         icon="icons/obj16/lomboz.gif"
63  
-         typeIds="org.eclipse.jst.server.generic.runtime"/>
64  
-     <image
65  
-         id="org.eclipse.jst.server.generic.image"
66  
-         icon="icons/obj16/lomboz.gif"
67  
-         typeIds="org.eclipse.jst.server.generic"/>
68  
-	</extension>
69  
-  <extension point="org.eclipse.debug.ui.launchConfigurationTypeImages">
70  
-    <launchConfigurationTypeImage
71  
-      id="org.eclipse.jst.server.generic.image.ui.launchConfigurationTypeImage"
72  
-      configTypeID="org.eclipse.jst.server.generic.core.launchConfigurationType"
73  
-      icon="icons/obj16/lomboz.gif">
74  
-    </launchConfigurationTypeImage>
75  
-  </extension>
76  
-  
77  
-  <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
78  
-    <launchConfigurationTabGroup
79  
-      id="org.eclipse.jst.server.generic.internal.ui.launchConfigurationTabGroup"
80  
-      type="org.eclipse.jst.server.generic.core.launchConfigurationType"
81  
-      class="org.eclipse.jst.server.generic.internal.ui.GenericLaunchConfigurationTabGroup">
82  
-    </launchConfigurationTabGroup>
83  
-  </extension>
84  
-   
85  
-
86  
-</plugin>
66  ...server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericLaunchConfigurationTabGroup.java
... ...
@@ -1,66 +0,0 @@
1  
-/*******************************************************************************
2  
- * Copyright (c) 2004 Eteration Bilisim A.S.
3  
- * All rights reserved.   This program and the accompanying materials
4  
- * are made available under the terms of the Common Public License v1.0
5  
- * which accompanies this distribution, and is available at
6  
- * http://www.eclipse.org/legal/cpl-v10.html
7  
- * 
8  
- * Contributors:
9  
- *     Gorkem Ercan - initial API and implementation
10  
- *     Naci M. Dai
11  
- * 
12  
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
13  
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14  
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15  
- * DISCLAIMED.  IN NO EVENT SHALL ETERATION A.S. OR
16  
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17  
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18  
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19  
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21  
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22  
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23  
- * SUCH DAMAGE.
24  
- * ====================================================================
25  
- *
26  
- * This software consists of voluntary contributions made by many
27  
- * individuals on behalf of the Eteration Bilisim A.S.  For more
28  
- * information on eteration, please see
29  
- * <http://www.eteration.com/>.
30  
- ***************************************************************************/
31  
-package org.eclipse.jst.server.generic.internal.ui;
32  
-
33  
-import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
34  
-import org.eclipse.debug.ui.CommonTab;
35  
-import org.eclipse.debug.ui.EnvironmentTab;
36  
-import org.eclipse.debug.ui.ILaunchConfigurationDialog;
37  
-import org.eclipse.debug.ui.ILaunchConfigurationTab;
38  
-import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
39  
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
40  
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
41  
-import org.eclipse.jdt.debug.ui.launchConfigurations.JavaJRETab;
42  
-import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab;
43  
-
44  
-
45  
-public class GenericLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup{
46  
-	/**
47  
-	 * @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, String)
48  
-	 */
49  
-	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
50  
-		ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[7];
51  
-		tabs[0] = new ServerLaunchConfigurationTab(new String[] { "org.eclipse.jst.server.generic" });
52  
-		tabs[0].setLaunchConfigurationDialog(dialog);
53  
-		tabs[1] = new JavaArgumentsTab();
54  
-		tabs[1].setLaunchConfigurationDialog(dialog);
55  
-		tabs[2] = new JavaClasspathTab();
56  
-		tabs[2].setLaunchConfigurationDialog(dialog);
57  
-		tabs[3] = new SourceLookupTab();
58  
-		tabs[3].setLaunchConfigurationDialog(dialog);
59  
-		tabs[4] = new EnvironmentTab();
60  
-		tabs[4].setLaunchConfigurationDialog(dialog);
61  
-		tabs[5] = new JavaJRETab();
62  
-		tabs[5].setLaunchConfigurationDialog(dialog);	 
63  
-		tabs[6] = new CommonTab();
64  
-		tabs[6].setLaunchConfigurationDialog(dialog);
65  
-		setTabs(tabs);
66  
-	}}
57  ...jst.server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorPartFactory.java
... ...
@@ -1,57 +0,0 @@
1  
-/*******************************************************************************
2  
- * Copyright (c) 2004 Eteration Bilisim A.S.
3  
- * All rights reserved.   This program and the accompanying materials
4  
- * are made available under the terms of the Common Public License v1.0
5  
- * which accompanies this distribution, and is available at
6  
- * http://www.eclipse.org/legal/cpl-v10.html
7  
- * 
8  
- * Contributors:
9  
- *     Gorkem Ercan - initial API and implementation
10  
- *     Naci M. Dai
11  
- * 
12  
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
13  
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14  
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15  
- * DISCLAIMED.  IN NO EVENT SHALL ETERATION A.S. OR
16  
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17  
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18  
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19  
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21  
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22  
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23  
- * SUCH DAMAGE.
24  
- * ====================================================================
25  
- *
26  
- * This software consists of voluntary contributions made by many
27  
- * individuals on behalf of the Eteration Bilisim A.S.  For more
28  
- * information on eteration, please see
29  
- * <http://www.eteration.com/>.
30  
- ***************************************************************************/
31  
-package org.eclipse.jst.server.generic.internal.ui;
32  
-
33  
-import org.eclipse.ui.IEditorPart;
34  
-import org.eclipse.wst.server.core.IServer;
35  
-import org.eclipse.wst.server.ui.editor.ServerEditorPartFactoryDelegate;
36  
-
37  
-
38  
-public class GenericServerEditorPartFactory extends
39  
-		ServerEditorPartFactoryDelegate {
40  
-
41  
-	/* (non-Javadoc)
42  
-	 * @see org.eclipse.wst.server.ui.editor.IServerEditorPartFactoryDelegate#shouldCreatePage(org.eclipse.wst.server.core.IServer, org.eclipse.wst.server.core.IServerConfiguration)
43  
-	 */
44  
-	public boolean shouldCreatePage(IServer server) {
45  
-		// TODO Auto-generated method stub
46  
-		return true;
47  
-	}
48  
-
49  
-	/* (non-Javadoc)
50  
-	 * @see org.eclipse.wst.server.ui.editor.IServerEditorPartFactoryDelegate#createPage()
51  
-	 */
52  
-	public IEditorPart createPage() {
53  
-		// TODO Auto-generated method stub
54  
-		return null;
55  
-	}
56  
-
57  
-}
56  ....server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerEditorSectionFactory.java
... ...
@@ -1,56 +0,0 @@
1  
-package org.eclipse.jst.server.generic.internal.ui;
2  
-/*******************************************************************************
3  
- * Copyright (c) 2004 Eteration Bilisim A.S.
4  
- * All rights reserved.   This program and the accompanying materials
5  
- * are made available under the terms of the Common Public License v1.0
6  
- * which accompanies this distribution, and is available at
7  
- * http://www.eclipse.org/legal/cpl-v10.html
8  
- * 
9  
- * Contributors:
10  
- *     Gorkem Ercan - initial API and implementation
11  
- *     Naci M. Dai
12  
- * 
13  
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
14  
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15  
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16  
- * DISCLAIMED.  IN NO EVENT SHALL ETERATION A.S. OR
17  
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18  
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
19  
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
20  
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21  
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22  
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
23  
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24  
- * SUCH DAMAGE.
25  
- * ====================================================================
26  
- *
27  
- * This software consists of voluntary contributions made by many
28  
- * individuals on behalf of the Eteration Bilisim A.S.  For more
29  
- * information on eteration, please see
30  
- * <http://www.eteration.com/>.
31  
- ***************************************************************************/
32  
-
33  
-import org.eclipse.wst.server.core.IServer;
34  
-import org.eclipse.wst.server.ui.editor.IServerEditorSection;
35  
-import org.eclipse.wst.server.ui.editor.ServerEditorPageSectionFactoryDelegate;
36  
-
37  
-public class GenericServerEditorSectionFactory extends
38  
-		ServerEditorPageSectionFactoryDelegate {
39  
-
40  
-	/* (non-Javadoc)
41  
-	 * @see org.eclipse.wst.server.ui.editor.IServerEditorPageSectionFactoryDelegate#shouldCreateSection(org.eclipse.wst.server.core.IServer, org.eclipse.wst.server.core.IServerConfiguration)
42  
-	 */
43  
-	public boolean shouldCreateSection(IServer server) {
44  
-		// TODO Auto-generated method stub
45  
-		return true;
46  
-	}
47  
-
48  
-	/* (non-Javadoc)
49  
-	 * @see org.eclipse.wst.server.ui.editor.IServerEditorPageSectionFactoryDelegate#createSection()
50  
-	 */
51  
-	public IServerEditorSection createSection() {
52  
-		// TODO Auto-generated method stub
53  
-		return null;
54  
-	}
55  
-
56  
-}
291  ...server.generic.ui/src/org/eclipse/jst/server/generic/internal/ui/GenericServerRuntimeWizardFragment.java
... ...
@@ -1,291 +0,0 @@
1  
-/*******************************************************************************
2  
- * Copyright (c) 2004 Eteration Bilisim A.S.
3  
- * All rights reserved.   This program and the accompanying materials
4  
- * are made available under the terms of the Common Public License v1.0
5  
- * which accompanies this distribution, and is available at
6  
- * http://www.eclipse.org/legal/cpl-v10.html
7  
- * 
8  
- * Contributors:
9  
- *     Gorkem Ercan - initial API and implementation
10  
- *     Naci M. Dai
11  
- * 
12  
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
13  
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
14  
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15  
- * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
16  
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
17  
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18  
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19  
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
20  
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21  
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
22  
- * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23  
- * SUCH DAMAGE.
24  
- * ====================================================================
25  
- *
26  
- * This software consists of voluntary contributions made by many
27  
- * individuals on behalf of the Eteration Bilisim A.S.  For more
28  
- * information on eteration, please see
29  
- * <http://www.eteration.com/>.
30  
- ***************************************************************************/
31  
-package org.eclipse.jst.server.generic.internal.ui;
32  
-
33  
-import java.util.Map;
34  
-import org.eclipse.core.runtime.IStatus;
35  
-import org.eclipse.core.runtime.NullProgressMonitor;
36  
-import org.eclipse.jface.dialogs.IMessageProvider;
37  
-import org.eclipse.jst.server.generic.internal.core.GenericServerRuntime;
38  
-import org.eclipse.jst.server.generic.servertype.definition.ServerRuntime;
39  
-import org.eclipse.jst.server.generic.ui.GenericServerUIMessages;
40  
-import org.eclipse.swt.SWT;
41  
-import org.eclipse.swt.events.SelectionEvent;
42  
-import org.eclipse.swt.events.SelectionListener;
43  
-import org.eclipse.swt.layout.GridData;
44  
-import org.eclipse.swt.layout.GridLayout;
45  
-import org.eclipse.swt.widgets.Combo;
46  
-import org.eclipse.swt.widgets.Composite;
47  
-import org.eclipse.swt.widgets.Group;
48  
-import org.eclipse.swt.widgets.Label;
49  
-import org.eclipse.wst.server.core.IRuntime;
50  
-import org.eclipse.wst.server.core.IRuntimeType;
51  
-import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
52  
-import org.eclipse.wst.server.core.ITaskModel;
53  
-import org.eclipse.wst.server.core.ServerCore;
54  
-import org.eclipse.wst.server.core.model.RuntimeDelegate;
55  
-import org.eclipse.wst.server.ui.wizard.IWizardHandle;
56  
-
57  
-/**
58  
- * A serverDefinitionType aware wizard for defining runtimes.
59  
- * 
60  
- * @author Gorkem Ercan
61  
- */
62  
-public class GenericServerRuntimeWizardFragment extends ServerDefinitionTypeAwareWizardFragment {
63  
-	
64  
-
65  
-	private Group selectionBar;
66  
-	private Combo fServerCombo;
67  
-	private ServerTypeDefinitionGroup fServerPanel;
68  
-	private RuntimeDelegate fRuntimeDelegate;
69  
-    private Map fServerRuntimeProperties;
70  
-    private String fSelectedServerType;
71  
-    
72  
-	
73  
-	/**
74  
-	 * Constructor
75  
-	 */
76  
-	public GenericServerRuntimeWizardFragment() {
77  
-		super();
78  
-	}
79  
-	/* (non-Javadoc)
80  
-	 * @see com.ibm.wtp.server.ui.wizard.IWizardFragment#isComplete()
81  
-	 */
82  
-	public boolean isComplete() {
83  
-	  	RuntimeDelegate runtime = getRuntimeDelegate();
84  
-		if (runtime == null)
85  
-			return false;
86  
-		IStatus status = runtime.validate();
87  
-		return (status != null && status.isOK());
88  
-	}
89  
-	
90  
-	public void createContent(Composite parent, IWizardHandle handle) {
91  
-		fRuntimeDelegate=null;
92  
-		createSelectionBar(parent);
93  
-		createServerDefinitionTypeComposite(parent);
94  
-	}
95  
-
96  
-	
97  
-	private void swapBody() 
98  
-	{
99  
-	    this.fRuntimeDelegate=null;
100  
-        String selected = fServerCombo == null ? null : fServerCombo
101  
-                .getItem(fServerCombo.getSelectionIndex());
102  
-        Map properties = null;
103  
-        ServerRuntime definition = getServerTypeDefinition(selected,properties);
104  
-        fServerPanel.reset(definition,ServerTypeDefinitionGroup.CONTEXT_RUNTIME, properties);
105  
-    }
106  
-	/**
107  
-     * @param selected
108  
-     */
109  
-    private void createServerDefinitionTypeComposite(Composite parent) {     
110  
-        String selected = fServerCombo==null?null:fServerCombo.getItem(fServerCombo.getSelectionIndex());
111  
-        if(getServerDefinitionId()!=null)
112  
-		    selected=getServerDefinitionId();
113  
-        Map properties= null;
114  
-        if(getRuntimeDelegate()!=null)
115  
-            properties = getRuntimeDelegate().getAttribute(GenericServerRuntime.SERVER_INSTANCE_PROPERTIES,(Map)null);
116  
-        ServerRuntime definition = getServerTypeDefinition(selected,properties);
117  
-        fServerPanel = new ServerTypeDefinitionGroup(this,definition,ServerTypeDefinitionGroup.CONTEXT_RUNTIME,properties,parent);
118  
-    }
119  
-    private void createSelectionBar(Composite content) {
120  
-		selectionBar = new Group(content, SWT.SHADOW_ETCHED_IN);
121  
-		selectionBar.setLayout(new GridLayout(2,false));
122  
-		selectionBar.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
123  
-		Label label = new Label(selectionBar, SWT.NONE);
124  
-		label.setText(GenericServerUIMessages.getString("runtimeWizard.label.serverType"));
125  
-		label.setLayoutData(new GridData());
126  
-		fServerCombo = new Combo(selectionBar, SWT.BORDER |SWT.READ_ONLY);
127  
-		ServerRuntime[] servers = getAllServerDefinitionTypes();
128  
-		for(int i=0; i<servers.length; i++){
129  
-			fServerCombo.add(servers[i].getName());
130  
-		}
131  
-		fServerCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL));
132  
-		if(fServerCombo.getItemCount()>0)
133  
-		{
134  
-		    if(getServerDefinitionId()!=null)
135  
-		    {
136  
-		        selectServerDefinition();
137  
-		    }
138  
-		    fServerCombo.select(0);
139  
-		}
140  
-		fServerCombo.addSelectionListener(
141  
-				new SelectionListener() {
142  
-					public void widgetSelected(SelectionEvent e) {
143  
-						swapBody();
144  
-						serverDefinitionTypePropertiesChanged();
145  
-					}
146  
-					public void widgetDefaultSelected(SelectionEvent e) {}
147  
-				}
148  
-			);
149  
-	}
150  
-
151  
-	
152  
-	private String getServerDefinitionId()
153  
-	{
154  
-		String currentDefinition= null;
155  
-		if(getRuntimeDelegate()!=null)
156  
-			currentDefinition =  getRuntimeDelegate().getAttribute(GenericServerRuntime.SERVER_DEFINITION_ID,"");
157  
-		if(currentDefinition!= null && currentDefinition.length()>0)
158  
-		{	
159  
-			return currentDefinition;
160  
-		}
161  
-		return null;
162  
-	}
163  
-	
164  
-	private void selectServerDefinition()
165  
-	{
166  
-		String currentDefinition = getServerDefinitionId();
167  
-		int selectIndex = 0;
168  
-		if(currentDefinition != null)
169  
-		{	
170  
-			selectIndex =  fServerCombo.indexOf(currentDefinition);
171  
-			if(selectIndex<0)
172  
-				selectIndex =0;
173  
-		}
174  
-		fServerCombo.select(selectIndex);
175  
-	}
176  
-	
177  
-	
178  
-	/* (non-Javadoc)
179  
-	 * @see org.eclipse.wst.server.ui.wizard.IWizardFragment#enter()
180  
-	 */
181  
-	public void enter() {
182  
-		String serverDefinition = getServerDefinitionId();
183  
-		if(serverDefinition!=null && serverDefinition.length()>0)
184  
-		{
185  
-			selectServerDefinition();
186  
-	        Map properties = null;
187  
-	        if (getRuntimeDelegate() != null) {
188  
-	            properties = getRuntimeDelegate().getAttribute(GenericServerRuntime.SERVER_INSTANCE_PROPERTIES,(Map) null);
189  
-	        }
190  
-	        ServerRuntime definition = getServerTypeDefinition(serverDefinition,properties);
191  
-	        fServerPanel.reset(definition,ServerTypeDefinitionGroup.CONTEXT_RUNTIME, properties);
192  
-		}
193  
-	}
194  
-	
195  
-	/* (non-Javadoc)
196  
-	 * @see org.eclipse.wst.server.ui.wizard.IWizardFragment#exit()
197  
-	 */
198  
-	public void exit() {
199  
-	    try {
200  
-	        getRuntimeDelegate().getRuntimeWorkingCopy().save(true,new NullProgressMonitor());
201  
-	    }
202  
-	    catch(Exception e){//unhandled
203  
-	    }
204  
-        fRuntimeDelegate=null;
205  
-        
206  
-	}
207  
-	protected String getSelectedServerType(){
208  
-	   return  fSelectedServerType;
209  
-	}
210  
-	protected Map getServerRuntimeProperties(){
211  
-	    return fServerRuntimeProperties; 
212  
-	}
213  
-
214  
-	private String createName()
215  
-	{
216  
-	    String selected = getSelectedServerType();
217  
-	    RuntimeDelegate dl = getRuntimeDelegate();
218  
-	    IRuntimeType runtimeType = dl.getRuntime().getRuntimeType();
219  
-	    String name = GenericServerUIMessages.getFormattedString("runtimeName", new String[] {selected,runtimeType.getName()});
220  
-	    
221  
-		
222  
-		IRuntime[] list = ServerCore.getRuntimes();
223  
-		
224  
-		int suffix = 1;
225  
-		String suffixName=name;
226  
-		for(int i=0;i<list.length;i++)
227  
-	    {
228  
-	        if(list[i].getName().equals(name)|| list[i].getName().equals(suffixName))
229  
-	            suffix++;
230  
-	        suffixName= name+" "+suffix;
231  
-	    }
232  
-	    
233  
-		if(suffix>1)
234  
-		    return suffixName;
235  
-	    return name;
236  
-	}
237  
-	
238  
-	private RuntimeDelegate getRuntimeDelegate()
239  
-	{
240  
-		if(fRuntimeDelegate == null)
241  
-		{	
242  
-		    IRuntimeWorkingCopy wc = (IRuntimeWorkingCopy)getTaskModel().getObject(ITaskModel.TASK_RUNTIME);
243  
-		    if(wc==null)
244  
-		        return null;
245  
-		    fRuntimeDelegate = (RuntimeDelegate)wc.getAdapter(RuntimeDelegate.class);
246  
-		}
247  
-		return fRuntimeDelegate;
248  
-	}
249  
-    /* (non-Javadoc)
250  
-     * @see org.eclipse.jst.server.generic.internal.ui.ServerDefinitionTypeAwareWizardFragment#description()
251  
-     */
252  
-    public String description() {
253  
-        return  GenericServerUIMessages.getString("runtimeWizardDescription");
254  
-    }
255  
-    /* (non-Javadoc)
256  
-     * @see org.eclipse.jst.server.generic.internal.ui.ServerDefinitionTypeAwareWizardFragment#title()
257  
-     */
258  
-    public String title() {
259  
-        return GenericServerUIMessages.getString("runtimeWizardTitle");
260  
-    }
261  
-    
262  
-    /* (non-Javadoc)
263  
-     * @see org.eclipse.jst.server.generic.internal.ui.ServerDefinitionTypeAwareWizardFragment#serverDefinitionTypePropertiesChanged()
264  
-     */
265  
-    public void serverDefinitionTypePropertiesChanged() {
266  
-		fSelectedServerType = fServerCombo.getItem(fServerCombo.getSelectionIndex());
267  
-        fServerRuntimeProperties = fServerPanel.getProperties();
268  
-   		String selected = getSelectedServerType();
269  
-		Map properties = getServerRuntimeProperties();
270  
-		RuntimeDelegate dl = getRuntimeDelegate();       		
271  
-		dl.setAttribute(GenericServerRuntime.SERVER_DEFINITION_ID, selected);
272  
-		dl.setAttribute(GenericServerRuntime.SERVER_INSTANCE_PROPERTIES,properties);
273  
-		dl.getRuntimeWorkingCopy().setName(createName());
274  
-		
275  
-		validate();
276  
-   }
277  
-    
278  
-    private void validate()
279  
-    {
280  
-		if (getRuntimeDelegate() == null) {
281  
-			this.getWizard().setMessage("", IMessageProvider.ERROR);
282  
-			return;
283  
-		}
284  
-		IStatus status = getRuntimeDelegate().validate();
285  
-		if (status == null || status.isOK())
286  
-			getWizard().setMessage(null, IMessageProvider.NONE);
287  
-		else
288  
-			getWizard().setMessage(status.getMessage(), IMessageProvider.ERROR);
289  
-		getWizard().update();
290  
-    }
291  
-}