You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ha...@apache.org on 2011/08/24 11:49:17 UTC

svn commit: r1161030 - in /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui: ./ src/main/java/org/apache/geronimo/st/v30/ui/actions/ src/main/java/org/apache/geronimo/st/v30/ui/commands/ src/main/java/org/apache/geronimo/st/...

Author: hanhongfang
Date: Wed Aug 24 09:49:16 2011
New Revision: 1161030

URL: http://svn.apache.org/viewvc?rev=1161030&view=rev
Log:
GERONIMODEVTOOLS-764 Control the OSGI bundle's start level in GEP. Thanks Yi Xiao for the patch.

Added:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java   (with props)
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java   (with props)
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java   (with props)
Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.properties
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.xml
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.properties?rev=1161030&r1=1161029&r2=1161030&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.properties (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.properties Wed Aug 24 09:49:16 2011
@@ -24,3 +24,4 @@ PopupMenus.launchconsole=Launch Geronimo
 PopupMenus.launchSupport=Launch Geronimo Support
 deploymentPlanEditorName=Geronimo Deployment Plan Editor
 BlueprintEditorName=Geronimo Blueprint Editor
+changeBundleStartLevel=Change Start Level

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.xml?rev=1161030&r1=1161029&r2=1161030&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.xml (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/plugin.xml Wed Aug 24 09:49:16 2011
@@ -149,8 +149,19 @@
         </section>
     </extension>
     
+    <!--
+      Add the edite default OSGI bundle start level section
+    -->
     <extension point="org.eclipse.wst.server.ui.editorPageSections">
-        <section id="org.apache.server.geronimo.karafShell" order="21"
+        <section id="org.apache.server.geronimo.cleanOSGiBundleCache" order="21"
+            insertionId="org.eclipse.wst.server.editor.overview.right"
+            typeIds="org.apache.geronimo.server.30"
+            class="org.apache.geronimo.st.v30.ui.sections.ServerEditorSetOSGIBundleStartLevelSection">
+        </section>
+    </extension>
+    
+    <extension point="org.eclipse.wst.server.ui.editorPageSections">
+        <section id="org.apache.server.geronimo.karafShell" order="22"
             insertionId="org.eclipse.wst.server.editor.overview.right"
             typeIds="org.apache.geronimo.server.30"
             class="org.apache.geronimo.st.v30.ui.sections.ServerEditorKarafShellSection">
@@ -158,7 +169,7 @@
     </extension>
     
     <extension point="org.eclipse.wst.server.ui.editorPageSections">
-        <section id="org.apache.server.geronimo.loglevel" order="22"
+        <section id="org.apache.server.geronimo.loglevel" order="23"
             insertionId="org.eclipse.wst.server.editor.overview.right"
             typeIds="org.apache.geronimo.server.30"
             class="org.apache.geronimo.st.v30.ui.sections.ServerEditorLogLevelSection">
@@ -394,5 +405,20 @@
     <extension point="org.eclipse.ui.startup">
         <startup class="org.apache.geronimo.st.v30.ui.Startup"/>
     </extension>
-    
+    <!--
+        The pop up menu of changing the bundle's startup level
+    -->
+	<extension point="org.eclipse.ui.popupMenus">
+	  <objectContribution
+	    id="org.apache.geronimo.st.v30.ui.change.osgi.bundle.startlevel"
+	    objectClass="org.eclipse.wst.server.ui.IServerModule">
+	    <action
+	      id="org.apache.geronimo.st.v30.ui.change.osgi.bundle.startlevel.action"
+	      label="%changeBundleStartLevel"
+	      enablesFor="1"
+	      class="org.apache.geronimo.st.v30.ui.actions.ChangeBundleStartLevelAction">
+	    </action>
+	  </objectContribution>
+	</extension>
+	    
 </plugin>

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java?rev=1161030&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java Wed Aug 24 09:49:16 2011
@@ -0,0 +1,120 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.actions;
+
+
+import org.apache.geronimo.st.v30.core.GeronimoServerBehaviourDelegate;
+import org.apache.geronimo.st.v30.core.base.Bundle;
+import org.apache.geronimo.st.v30.core.internal.Trace;
+import org.apache.geronimo.st.v30.ui.Activator;
+import org.apache.geronimo.st.v30.ui.internal.Messages;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.IInputValidator;
+import org.eclipse.jface.dialogs.InputDialog;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.TreeSelection;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IObjectActionDelegate;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.internal.ObjectPluginAction;
+import org.eclipse.wst.server.core.IModule;
+import org.eclipse.wst.server.core.internal.Server;
+import org.eclipse.wst.server.ui.internal.view.servers.ModuleServer;
+
+@SuppressWarnings("restriction")
+public class ChangeBundleStartLevelAction implements IObjectActionDelegate {
+	private Server server;
+	private IModule[] module;
+	
+	@Override
+	public void run(IAction arg0) {
+		ObjectPluginAction action = (ObjectPluginAction) arg0;
+		TreeSelection selection = (TreeSelection)action.getSelection();
+		ModuleServer ms = (ModuleServer) selection.getFirstElement();
+		module = ms.getModule();
+		server = (Server) ms.getServer();
+		
+		Bundle bundle = getBundle();
+		InputDialog diag = new ChangeStartLevelDiag(null, Messages.changeOSGIBundleStartLevel, 
+				Messages.changeOSGIBundleStartLevelDesc, bundle.getStartLevel() + "", null);
+		diag.open();
+
+	}
+
+	@Override
+	public void selectionChanged(IAction arg0, ISelection arg1) {
+	}
+
+	@Override
+	public void setActivePart(IAction arg0, IWorkbenchPart arg1) {
+	}
+	
+	private class ChangeStartLevelDiag extends InputDialog {
+
+		public ChangeStartLevelDiag(Shell parentShell, String dialogTitle,
+				String dialogMessage, String initialValue,
+				IInputValidator validator) {
+			super(parentShell, dialogTitle, dialogMessage, initialValue, validator);
+		}
+
+		@Override
+		protected void cancelPressed() {
+			super.cancelPressed();
+		}
+
+		@Override
+		protected void okPressed() {
+			String value = this.getValue();
+			try {
+				int level = Integer.parseInt(value);
+				Bundle bundle = getBundle();
+				bundle.setStartLevel(level);
+				super.okPressed();
+				
+			} catch(Exception e) {
+				this.setErrorMessage(Messages.changeOSGIBundleStartLevelDescOnError);
+			}
+			
+			publish(module);
+		}
+		
+		private void publish(IModule[] module) {
+			GeronimoServerBehaviourDelegate delegate = (GeronimoServerBehaviourDelegate) server.getAdapter(GeronimoServerBehaviourDelegate.class);
+			try {
+				delegate.getOsgiModuleHandler().doChanged(module[0], null);
+			} catch (Exception e) {
+				Trace.trace(Trace.ERROR, e.getMessage(), e, Activator.logActions);
+			}
+		}
+		
+	}
+	
+	private Bundle getBundle() throws RuntimeException {
+		Bundle bundle = null;
+		GeronimoServerBehaviourDelegate delegate = (GeronimoServerBehaviourDelegate) server.getAdapter(GeronimoServerBehaviourDelegate.class);
+		try {
+		    bundle = delegate.getOsgiModuleHandler().getBundleInfo(module[0]);
+			if(bundle == null) throw new NullPointerException("the bundle is inexisted");
+			
+			return bundle;
+		} catch (Exception e) {
+			Trace.trace(Trace.ERROR, e.getMessage(), e, Activator.logActions);
+			throw new RuntimeException(e);
+		}
+	}
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/actions/ChangeBundleStartLevelAction.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java?rev=1161030&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java Wed Aug 24 09:49:16 2011
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.commands;
+
+import org.apache.geronimo.st.v30.core.ModuleArtifactMapper;
+import org.apache.geronimo.st.v30.core.osgi.OsgiConstants;
+import org.eclipse.swt.widgets.Spinner;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+
+
+public class SetDefaultOSGIBundleStartLevel extends ServerCommand {
+	private Spinner spinner;
+	private int value;
+	private int oldValue;
+	
+	public SetDefaultOSGIBundleStartLevel(IServerWorkingCopy server, String name, Spinner spinner) {
+		super(server, name);
+		this.spinner = spinner;
+		this.value = spinner.getSelection();
+	}
+
+	@Override
+	public void execute() {
+		oldValue = OsgiConstants.BUNDLE_DEFAULT_START_LEVEL;
+		OsgiConstants.BUNDLE_DEFAULT_START_LEVEL = value;
+		ModuleArtifactMapper.getInstance().saveDefaultBundleStartLevel(server, OsgiConstants.BUNDLE_DEFAULT_START_LEVEL);
+		
+	}
+
+	@Override
+	public void undo() {
+		OsgiConstants.BUNDLE_DEFAULT_START_LEVEL = oldValue;
+		spinner.setSelection(oldValue);
+		ModuleArtifactMapper.getInstance().saveDefaultBundleStartLevel(server, OsgiConstants.BUNDLE_DEFAULT_START_LEVEL);
+	}
+
+
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/commands/SetDefaultOSGIBundleStartLevel.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java?rev=1161030&r1=1161029&r2=1161030&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.java Wed Aug 24 09:49:16 2011
@@ -49,6 +49,9 @@ public class Messages extends NLS {
     
     public static String refreshOSGiBundle;
     public static String refreshOSGiBundleDescription;
+    public static String changeOSGIBundleStartLevel;
+    public static String changeOSGIBundleStartLevelDesc;
+    public static String changeOSGIBundleStartLevelDescOnError;
     
     public static String editorSectionKarafShellTitle;
     public static String editorSectionKarafShellDescription;
@@ -64,6 +67,9 @@ public class Messages extends NLS {
     public static String editorSectionPublishAdvancedDescription;
     public static String notRedeployJSPFilesReminder;
     public static String notRedeployJSPFilesInformation;
+    public static String editorSectionOSGIBundleStartLevel;
+    public static String editorSectionOSGIBundleStartLevelDesc;
+    public static String defaultOSGIBundleStartLevel;
     
     public static String formServerInfo;
     public static String formHelp;

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties?rev=1161030&r1=1161029&r2=1161030&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties (original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/internal/Messages.properties Wed Aug 24 09:49:16 2011
@@ -104,6 +104,9 @@ cleanOSGiBundleCache=Clean OSGi bundle c
 
 refreshOSGiBundle=Update modified OSGi bundle only
 refreshOSGiBundleDescription=Update the modified OSGi bundle only instead of re-deploying the entire OSGi Application.
+changeOSGIBundleStartLevel=Change the Bundle's Start Level
+changeOSGIBundleStartLevelDesc=Input new start level of the bundle.
+changeOSGIBundleStartLevelDescOnError=The start level must be a integer, please try again.
 
 editorSectionKarafShellTitle=Karaf Shell in Eclipse Console
 editorSectionKarafShellDescription=Select whether to enable the Karaf shell in Eclipse console window.
@@ -469,9 +472,12 @@ editorSectionRunFromWorkspace=Run module
 editorSectionSelectClasspathContainers=Select the workspace classpath containers to be provided to the server
 editorSectionPublishAdvancedTitle=Publish Advanced
 editorSectionPublishAdvancedDescription=Additional options for publishing.
+editorSectionOSGIBundleStartLevel=Default OSGI Bundle Start Level
+editorSectionOSGIBundleStartLevelDesc=Set the default bundle start level when it is deployed to the server.
 notRedeployJSPFilesReminder=Important 
 notRedeployJSPFilesInformation=You must enable \"Development Mode\" of JSP compiler for this to function properly. 
 
+defaultOSGIBundleStartLevel=Default Bundle Start Level:
 publishingTimeout=Publishing Timeout (in seconds):
 artifactType=Artifact Type:
 inverseClassloading=Inverse classloading

Added: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java?rev=1161030&view=auto
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java (added)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java Wed Aug 24 09:49:16 2011
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.st.v30.ui.sections;
+
+import org.apache.geronimo.st.v30.core.ModuleArtifactMapper;
+import org.apache.geronimo.st.v30.ui.commands.SetDefaultOSGIBundleStartLevel;
+import org.apache.geronimo.st.v30.ui.internal.Messages;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Spinner;
+import org.eclipse.ui.forms.widgets.ExpandableComposite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.eclipse.ui.forms.widgets.Section;
+
+public class ServerEditorSetOSGIBundleStartLevelSection extends
+		AbstractServerEditorSection {
+    private Spinner startLevelSpinner;
+
+    public ServerEditorSetOSGIBundleStartLevelSection() {
+        super();
+    }
+
+    public void createSection(Composite parent) {
+        super.createSection(parent);
+
+        FormToolkit toolkit = getFormToolkit(parent.getDisplay());
+
+        Section section = toolkit.createSection(parent,
+                ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED
+                        | ExpandableComposite.TITLE_BAR | Section.DESCRIPTION
+                        | ExpandableComposite.FOCUS_TITLE);
+
+        section.setText(Messages.editorSectionOSGIBundleStartLevel);
+        section.setDescription(Messages.editorSectionOSGIBundleStartLevelDesc);
+        section.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
+
+        Composite composite = toolkit.createComposite(section);
+        GridLayout layout = new GridLayout();
+        layout.numColumns = 2;
+        layout.marginHeight = 5;
+        layout.marginWidth = 10;
+        layout.verticalSpacing = 5;
+        layout.horizontalSpacing = 15;
+        composite.setLayout(layout);
+        composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
+        section.setClient(composite);
+
+        createLabel(composite, Messages.defaultOSGIBundleStartLevel, toolkit);
+
+        startLevelSpinner = new Spinner(composite, SWT.BORDER);
+        startLevelSpinner.setMinimum(1);
+        startLevelSpinner.setIncrement(1);
+        startLevelSpinner.setSelection(ModuleArtifactMapper.getInstance().getServerBundleDefaultStartLevel(server.getOriginal()));
+
+        startLevelSpinner.addModifyListener(new ModifyListener() {
+            public void modifyText(ModifyEvent e) {
+            	execute(new SetDefaultOSGIBundleStartLevel(server, Messages.defaultOSGIBundleStartLevel,
+            			startLevelSpinner));
+            }
+        });
+    }
+    
+}

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.v30.ui/src/main/java/org/apache/geronimo/st/v30/ui/sections/ServerEditorSetOSGIBundleStartLevelSection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain