diff --git a/plugins/com.google.cloud.tools.eclipse.appengine.localserver.test/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroupTest.java b/plugins/com.google.cloud.tools.eclipse.appengine.localserver.test/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroupTest.java index 289fb1e4b2..41aae8eb73 100644 --- a/plugins/com.google.cloud.tools.eclipse.appengine.localserver.test/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroupTest.java +++ b/plugins/com.google.cloud.tools.eclipse.appengine.localserver.test/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroupTest.java @@ -9,7 +9,8 @@ public class AppEngineTabGroupTest { public void testCreateTabs() { AppEngineTabGroup group = new AppEngineTabGroup(); group.createTabs(null, ""); - Assert.assertEquals(1, group.getTabs().length); + Assert.assertEquals("Server", group.getTabs()[0].getName()); + Assert.assertEquals("Environment", group.getTabs()[1].getName()); } } diff --git a/plugins/com.google.cloud.tools.eclipse.appengine.localserver/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroup.java b/plugins/com.google.cloud.tools.eclipse.appengine.localserver/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroup.java index 21de0b4c18..c23e993b8a 100644 --- a/plugins/com.google.cloud.tools.eclipse.appengine.localserver/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroup.java +++ b/plugins/com.google.cloud.tools.eclipse.appengine.localserver/src/com/google/cloud/tools/eclipse/appengine/localserver/ui/AppEngineTabGroup.java @@ -1,6 +1,7 @@ package com.google.cloud.tools.eclipse.appengine.localserver.ui; import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup; +import org.eclipse.debug.ui.EnvironmentTab; import org.eclipse.debug.ui.ILaunchConfigurationDialog; import org.eclipse.debug.ui.ILaunchConfigurationTab; import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab; @@ -13,9 +14,11 @@ public class AppEngineTabGroup extends AbstractLaunchConfigurationTabGroup { @Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { - ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[1]; + ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[2]; tabs[0] = new ServerLaunchConfigurationTab(SERVER_TYPE_IDS); tabs[0].setLaunchConfigurationDialog(dialog); + tabs[1] = new EnvironmentTab(); + tabs[1].setLaunchConfigurationDialog(dialog); // see // http://git.eclipse.org/c/jetty/org.eclipse.jetty.wtp.git/tree/org.eclipse.jst.server.jetty.ui/src/org/eclipse/jst/server/jetty/ui/internal/JettyLaunchConfigurationTabGroup.java