Skip to content

Commit

Permalink
add environment tab to run configuration (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Aug 5, 2016
1 parent aa53d81 commit f8513e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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
Expand Down

0 comments on commit f8513e4

Please sign in to comment.