| /******************************************************************************* |
| * Copyright (c) 2010 Eteration A.S. and others. |
| * 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: |
| * IBM Corporation - initial API and implementation |
| * - This code is based on WTP SDK frameworks and Tomcat Server Adapters |
| * org.eclipse.jst.server.core |
| * org.eclipse.jst.server.ui |
| * |
| * Naci Dai and Murat Yener, Eteration A.S. |
| *******************************************************************************/ |
| |
| package org.eclipse.libra.framework.ui; |
| |
| import org.eclipse.debug.ui.*; |
| import org.eclipse.debug.ui.sourcelookup.SourceLookupTab; |
| import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab; |
| import org.eclipse.jdt.debug.ui.launchConfigurations.JavaClasspathTab; |
| import org.eclipse.wst.server.ui.ServerLaunchConfigurationTab; |
| |
| |
| public class GenericOSGILaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup { |
| /* |
| * @see ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, String) |
| */ |
| public void createTabs(ILaunchConfigurationDialog dialog, String mode) { |
| ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[6]; |
| tabs[0] = new ServerLaunchConfigurationTab(new String[] { "org.eclipse.libra" }); |
| tabs[0].setLaunchConfigurationDialog(dialog); |
| tabs[1] = new JavaArgumentsTab(); |
| tabs[1].setLaunchConfigurationDialog(dialog); |
| tabs[2] = new JavaClasspathTab(); |
| tabs[2].setLaunchConfigurationDialog(dialog); |
| tabs[3] = new SourceLookupTab(); |
| tabs[3].setLaunchConfigurationDialog(dialog); |
| tabs[4] = new EnvironmentTab(); |
| tabs[4].setLaunchConfigurationDialog(dialog); |
| tabs[5] = new CommonTab(); |
| tabs[5].setLaunchConfigurationDialog(dialog); |
| setTabs(tabs); |
| } |
| } |