debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/CarbideMainTab.java
author wpaul
Mon, 16 Aug 2010 22:04:30 -0500
changeset 1838 676acb52bd4b
parent 1395 0ca4f91f68bb
permissions -rw-r--r--
cleanup launch plugin icons
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     1
/*
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     3
* All rights reserved.
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     4
* This component and the accompanying materials are made available
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     6
* which accompanies this distribution, and is available
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     8
*
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
     9
* Initial Contributors:
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    11
*
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    12
* Contributors:
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    13
*
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    14
* Description: 
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    15
*
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    16
*/
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    17
package com.nokia.cdt.internal.debug.launch.ui;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    18
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    19
import org.eclipse.cdt.launch.internal.ui.LaunchMessages;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    20
import org.eclipse.cdt.launch.ui.CMainTab;
1395
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    21
import org.eclipse.core.resources.IProject;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    22
import org.eclipse.core.resources.ResourcesPlugin;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    23
import org.eclipse.debug.core.ILaunchConfiguration;
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    24
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    25
import org.eclipse.swt.SWT;
597
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    26
import org.eclipse.swt.events.ModifyEvent;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    27
import org.eclipse.swt.events.ModifyListener;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    28
import org.eclipse.swt.events.SelectionAdapter;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    29
import org.eclipse.swt.events.SelectionEvent;
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    30
import org.eclipse.swt.layout.GridData;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    31
import org.eclipse.swt.layout.GridLayout;
597
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    32
import org.eclipse.swt.widgets.Button;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    33
import org.eclipse.swt.widgets.Composite;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    34
import org.eclipse.swt.widgets.Label;
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
    35
import org.eclipse.swt.widgets.Text;
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    36
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    37
public class CarbideMainTab extends CMainTab {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    38
1395
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    39
	protected boolean checkProject;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    40
	
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    41
	
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    42
	public CarbideMainTab() {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    43
		super();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    44
	}
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    45
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    46
	public CarbideMainTab(int flags) {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    47
		super(flags);
1395
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    48
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    49
		// CMainTab won't validate a project if we tell it to ignore the program, so
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    50
		// add the project validation here
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
    51
		checkProject = (flags & DONT_CHECK_PROGRAM) != 0;
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    52
	}
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    53
	
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    54
	protected void createExeFileGroup(Composite parent, int colSpan) {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    55
		Composite mainComp = new Composite(parent, SWT.NONE);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    56
		GridLayout mainLayout = new GridLayout();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    57
		mainLayout.numColumns = 2;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    58
		mainLayout.marginHeight = 0;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    59
		mainLayout.marginWidth = 0;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    60
		mainComp.setLayout(mainLayout);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    61
		GridData gd = new GridData(GridData.FILL_HORIZONTAL);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    62
		gd.horizontalSpan = colSpan;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    63
		mainComp.setLayoutData(gd);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    64
		fProgLabel = new Label(mainComp, SWT.NONE);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    65
		fProgLabel.setText(LaunchMessages.getString("CMainTab.C/C++_Application")); //$NON-NLS-1$
596
c94d1a58b611 Added UIDs to the widgets
rsaid
parents: 273
diff changeset
    66
		fProgLabel.setData(".uid", "CarbideMainTab.ProgramLabel");
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    67
		gd = new GridData();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    68
		gd.horizontalSpan = 3;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    69
		fProgLabel.setLayoutData(gd);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    70
		fProgText = new Text(mainComp, SWT.SINGLE | SWT.BORDER);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    71
		gd = new GridData(GridData.FILL_HORIZONTAL);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    72
		fProgText.setLayoutData(gd);
596
c94d1a58b611 Added UIDs to the widgets
rsaid
parents: 273
diff changeset
    73
		fProgText.setData(".uid", "CarbideMainTab.ProgramText");
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    74
		fProgText.addModifyListener(new ModifyListener() {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    75
	
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    76
			public void modifyText(ModifyEvent evt) {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    77
				updateLaunchConfigurationDialog();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    78
			}
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    79
		});
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    80
	
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    81
		Button fBrowseForBinaryButton;
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    82
		fBrowseForBinaryButton = createPushButton(mainComp, LaunchMessages.getString("Launch.common.Browse_2"), null); //$NON-NLS-1$
596
c94d1a58b611 Added UIDs to the widgets
rsaid
parents: 273
diff changeset
    83
		fBrowseForBinaryButton.setData(".uid", "CarbideMainTab.BrowseForBinaryButton");
0
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    84
		fBrowseForBinaryButton.addSelectionListener(new SelectionAdapter() {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    85
	
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    86
			public void widgetSelected(SelectionEvent evt) {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    87
				handleBinaryBrowseButtonSelected();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    88
				updateLaunchConfigurationDialog();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    89
			}
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    90
		});
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    91
	}
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    92
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    93
	@Override
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    94
	public void activated(ILaunchConfigurationWorkingCopy workingCopy) {
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    95
		super.activated(workingCopy);
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    96
		
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    97
		// forces page to get focus so that help works without having to select some control first.
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    98
		getControl().setFocus();
fb279309251b DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff changeset
    99
	}
597
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   100
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   101
	@Override
834
0c7ceea480fb Replaced overloading createControl() with overloading createBuildoptionsGroup()
rsaid
parents: 597
diff changeset
   102
	public void createBuildOptionGroup(final Composite parent, int colSpan){
0c7ceea480fb Replaced overloading createControl() with overloading createBuildoptionsGroup()
rsaid
parents: 597
diff changeset
   103
		super.createBuildOptionGroup(parent, colSpan);
597
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   104
		fEnableBuildButton.setData(".uid", "CMainTab.EnableBuildButton"); //$NON-NLS-1$ //$NON-NLS-2$
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   105
		fDisableBuildButton.setData(".uid", "CMainTab.DisableBuildButton"); //$NON-NLS-1$ //$NON-NLS-2$
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   106
		fWorkspaceSettingsButton.setData(".uid", "CMainTab.WorkspaceSettingsButton"); //$NON-NLS-1$ //$NON-NLS-2$ 
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   107
		fWorkpsaceSettingsLink.setData(".uid", "CMainTab.WorkspaceSettingsLink"); //$NON-NLS-1$ //$NON-NLS-2$
0936494b27b5 add uids to main tab
dadubrow
parents: 596
diff changeset
   108
	}
1395
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   109
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   110
	@Override
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   111
	public boolean isValid(ILaunchConfiguration config) {
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   112
		boolean valid = super.isValid(config);
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   113
		if (valid && checkProject) {
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   114
			String name = fProjText.getText().trim();
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   115
			if (name.length() == 0) {
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   116
				setErrorMessage(LaunchMessages.getString("CMainTab.Project_not_specified")); //$NON-NLS-1$
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   117
				return false;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   118
			}
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   119
			if (!ResourcesPlugin.getWorkspace().getRoot().getProject(name).exists()) {
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   120
				setErrorMessage(LaunchMessages.getString("Launch.common.Project_does_not_exist")); //$NON-NLS-1$
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   121
				return false;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   122
			}
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   123
			IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   124
			if (!project.isOpen()) {
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   125
				setErrorMessage(LaunchMessages.getString("CMainTab.Project_must_be_opened")); //$NON-NLS-1$
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   126
				return false;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   127
			}
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   128
		}
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   129
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   130
		return valid;
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   131
	}
0ca4f91f68bb add project validation to our launch types as it's not done by CDT with us passing the DONT_CHECK_PROGRAM flag.
wpaul
parents: 834
diff changeset
   132
}