1
/*******************************************************************************
2
* Copyright (c) 2008 Red Hat, Inc.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Elliott Baron <ebaron@redhat.com> - initial API and implementation
10
* Rafael Teixeira <rafaelmt@linux.vnet.ibm.com> - Switched to
12
*******************************************************************************/
14
package org.eclipse.linuxtools.profiling.launch;
16
import java.util.ArrayList;
17
import java.util.Arrays;
19
import org.eclipse.cdt.launch.ui.CArgumentsTab;
20
import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
21
import org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup;
22
import org.eclipse.debug.ui.CommonTab;
23
import org.eclipse.debug.ui.EnvironmentTab;
24
import org.eclipse.debug.ui.ILaunchConfigurationDialog;
25
import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
30
public abstract class RemoteProxyProfileLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup {
32
public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
33
ArrayList<AbstractLaunchConfigurationTab> tabs = new ArrayList<AbstractLaunchConfigurationTab>();
34
tabs.add(new RemoteProxyCMainTab());
35
tabs.add(new CArgumentsTab());
37
tabs.addAll(Arrays.asList(getProfileTabs()));
39
tabs.add(new EnvironmentTab());
40
tabs.add(new SourceLookupTab());
41
tabs.add(new CommonTab());
43
setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()]));
46
public abstract AbstractLaunchConfigurationTab[] getProfileTabs();