blob: 748cbb7d8e16019c75927bf9c2cab1ec723d6dc3 [file] [log] [blame]
/***************************************************************************************************
* Copyright (c) 2005 Eteration A.S. and Gorkem Ercan. All rights reserved. This program and the
* accompanying materials are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Gorkem Ercan - initial API and implementation
*
**************************************************************************************************/
package org.eclipse.jst.server.generic.ui.internal;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
import org.eclipse.debug.ui.CommonTab;
import org.eclipse.debug.ui.EnvironmentTab;
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
import org.eclipse.debug.ui.ILaunchConfigurationTab;
import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab;
import org.eclipse.jst.server.generic.internal.core.util.ExtensionPointUtil;
import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab;
public class ExternalLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup{
/**
* @see org.eclipse.debug.ui.ILaunchConfigurationTabGroup ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, String)
*/
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[5];
tabs[0] = new ServerLaunchConfigurationTab(getTypeIds());
tabs[0].setLaunchConfigurationDialog(dialog);
tabs[1] = new JavaArgumentsTab();
tabs[1].setLaunchConfigurationDialog(dialog);
tabs[2] = new SourceLookupTab();
tabs[2].setLaunchConfigurationDialog(dialog);
tabs[3] = new EnvironmentTab();
tabs[3].setLaunchConfigurationDialog(dialog);
tabs[4] = new CommonTab();
tabs[4].setLaunchConfigurationDialog(dialog);
setTabs(tabs);
}
private String[] getTypeIds()
{
return ExtensionPointUtil.getServerTypesFromLaunchConfig( "org.eclipse.jst.server.generic.core.ExternalLaunchConfigurationType" ); //$NON-NLS-1$
}
}