~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to profiling/org.eclipse.linuxtools.profiling.launch/src/org/eclipse/linuxtools/profiling/launch/RemoteProxyProfileLaunchConfigurationTabGroup.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 *    Elliott Baron <ebaron@redhat.com> - initial API and implementation
 
10
 *    Rafael Teixeira <rafaelmt@linux.vnet.ibm.com> - Switched to
 
11
 *      RemoteProxyCMainTab
 
12
 *******************************************************************************/
 
13
 
 
14
package org.eclipse.linuxtools.profiling.launch;
 
15
 
 
16
import java.util.ArrayList;
 
17
import java.util.Arrays;
 
18
 
 
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;
 
26
 
 
27
/**
 
28
 * @since 1.1
 
29
 */
 
30
public abstract class RemoteProxyProfileLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup {
 
31
 
 
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());
 
36
 
 
37
                tabs.addAll(Arrays.asList(getProfileTabs()));
 
38
 
 
39
                tabs.add(new EnvironmentTab());
 
40
                tabs.add(new SourceLookupTab());
 
41
                tabs.add(new CommonTab());
 
42
 
 
43
                setTabs(tabs.toArray(new AbstractLaunchConfigurationTab[tabs.size()]));
 
44
        }
 
45
 
 
46
        public abstract AbstractLaunchConfigurationTab[] getProfileTabs();
 
47
 
 
48
}