[jbosstools-commits] JBoss Tools SVN: r31206 - in workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui: jbossui/org/jboss/ide/eclipse/as/ui/launch and 1 other directory.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed May 11 03:33:10 EDT 2011


Author: rob.stryker at jboss.com
Date: 2011-05-11 03:33:10 -0400 (Wed, 11 May 2011)
New Revision: 31206

Added:
   workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBoss7LaunchConfigurationTabGroup.java
Modified:
   workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java
   workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml
Log:
Updating the launch configuration tab group

Added: workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBoss7LaunchConfigurationTabGroup.java
===================================================================
--- workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBoss7LaunchConfigurationTabGroup.java	                        (rev 0)
+++ workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBoss7LaunchConfigurationTabGroup.java	2011-05-11 07:33:10 UTC (rev 31206)
@@ -0,0 +1,66 @@
+/**
+ * JBoss by Red Hat
+ * Copyright 2006-2009, Red Hat Middleware, LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+* This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ide.eclipse.as.ui.launch;
+
+import java.util.ArrayList;
+
+import org.eclipse.debug.ui.CommonTab;
+import org.eclipse.debug.ui.EnvironmentTab;
+import org.eclipse.debug.ui.ILaunchConfigurationTab;
+import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab;
+
+/**
+ * 
+ * @author Rob Stryker <rob.stryker at redhat.com>
+ *
+ */
+public class JBoss7LaunchConfigurationTabGroup extends JBossLaunchConfigurationTabGroup {
+
+	public static ArrayList<IJBossLaunchTabProvider> providers7 = 
+			new ArrayList<IJBossLaunchTabProvider>();
+	static {
+		providers7.add(new JBoss7StandardTabProvider());
+	}
+	public static void addTabProvider(IJBossLaunchTabProvider provider) {
+		providers7.add(provider);
+	}
+	
+	public static class JBoss7StandardTabProvider implements IJBossLaunchTabProvider {
+		public ILaunchConfigurationTab[] createTabs() {
+			ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
+					new JavaArgumentsTab(),
+					new JavaMainTabExtension(),
+					new JavaClasspathTab(),
+					new SourceLookupTab(),
+					new EnvironmentTab(),
+					new CommonTab()
+			};
+			return tabs;
+		}
+	}
+	
+	public ArrayList<IJBossLaunchTabProvider> getProviderList() {
+		return providers7;
+	}
+}

Modified: workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java
===================================================================
--- workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java	2011-05-11 04:11:04 UTC (rev 31205)
+++ workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/launch/JBossLaunchConfigurationTabGroup.java	2011-05-11 07:33:10 UTC (rev 31206)
@@ -91,8 +91,12 @@
 		}
 	}
 	
+	public ArrayList<IJBossLaunchTabProvider> getProviderList() {
+		return providers;
+	}
+	
 	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
-		Iterator<IJBossLaunchTabProvider> i = providers.iterator();
+		Iterator<IJBossLaunchTabProvider> i = getProviderList().iterator();
 		ArrayList<ILaunchConfigurationTab> tabs = new ArrayList<ILaunchConfigurationTab>();
 		while(i.hasNext()) {
 			ILaunchConfigurationTab[] tabs2 = i.next().createTabs();

Modified: workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml
===================================================================
--- workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml	2011-05-11 04:11:04 UTC (rev 31205)
+++ workspace/rstryker/andre2/plugins/org.jboss.ide.eclipse.as.ui/plugin.xml	2011-05-11 07:33:10 UTC (rev 31206)
@@ -66,7 +66,7 @@
             type="org.jboss.ide.eclipse.as.core.server.startupConfiguration"/>
 
       <launchConfigurationTabGroup
-            class="org.jboss.ide.eclipse.as.ui.launch.JBossLaunchConfigurationTabGroup"
+            class="org.jboss.ide.eclipse.as.ui.launch.JBoss7LaunchConfigurationTabGroup"
             description="%jbossLaunchconfigurationTabGroupDescription"
             id="org.jboss.ide.eclipse.as.core.jboss7LaunchTabGroup"
             type="org.jboss.ide.eclipse.as.core.server.JBoss7StartupConfiguration"/>



More information about the jbosstools-commits mailing list