debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/StopModeMainTab.java
branchC3_BUILDER_WORK
changeset 1724 b99f029f4d47
parent 1720 6433764204b0
parent 1723 b386036cfe5d
child 1730 e0e324a4ef67
equal deleted inserted replaced
1720:6433764204b0 1724:b99f029f4d47
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 package com.nokia.cdt.internal.debug.launch.ui;
       
    18 
       
    19 import org.eclipse.debug.core.ILaunchConfiguration;
       
    20 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
       
    21 import org.eclipse.swt.SWT;
       
    22 import org.eclipse.swt.layout.GridLayout;
       
    23 import org.eclipse.swt.widgets.Composite;
       
    24 
       
    25 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
       
    26 
       
    27 public class StopModeMainTab extends CarbideMainTab {
       
    28 
       
    29 	
       
    30 	public void createControl(Composite parent) {
       
    31 		Composite comp = new Composite(parent, SWT.NONE);
       
    32 		setControl(comp);
       
    33 		
       
    34 		LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.STOP_MODE_MAIN);
       
    35 		
       
    36 		GridLayout topLayout = new GridLayout();
       
    37 		comp.setLayout(topLayout);
       
    38 
       
    39 		createVerticalSpacer(comp, 1);
       
    40 		createProjectGroup(comp, 1);
       
    41 		createExeFileGroup(comp, 1);
       
    42 		
       
    43 		fProgLabel.setText(Messages.getString("StopModeMainTab.0")); //$NON-NLS-1$
       
    44 		fProgLabel.setToolTipText(Messages.getString("StopModeMainTab.1")); //$NON-NLS-1$
       
    45 		fProgText.setToolTipText(Messages.getString("StopModeMainTab.1")); //$NON-NLS-1$
       
    46 
       
    47 		fProjLabel.setToolTipText(Messages.getString("StopModeMainTab.2")); //$NON-NLS-1$
       
    48 		fProjText.setToolTipText(Messages.getString("StopModeMainTab.2")); //$NON-NLS-1$
       
    49 
       
    50 		createVerticalSpacer(comp, 1);
       
    51 		if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) {
       
    52 			createTerminalOption(comp, 1);
       
    53 			createVerticalSpacer(comp, 1);
       
    54 		}
       
    55 		createBuildOptionGroup(comp, 1);
       
    56 	}
       
    57 
       
    58 	public void setDefaults(ILaunchConfigurationWorkingCopy config) {
       
    59 	}
       
    60 
       
    61 	public void initializeFrom(ILaunchConfiguration config) {
       
    62 		super.initializeFrom(config);
       
    63 	}
       
    64 
       
    65 	public void performApply(ILaunchConfigurationWorkingCopy config) {
       
    66 		super.performApply(config);
       
    67 	}
       
    68 
       
    69 	/*
       
    70 	 * (non-Javadoc)
       
    71 	 * 
       
    72 	 * @see org.eclipse.debug.ui.ILaunchConfigurationTab#isValid(org.eclipse.debug.core.ILaunchConfiguration)
       
    73 	 */
       
    74 	public boolean isValid(ILaunchConfiguration config) {
       
    75 		boolean result = super.isValid(config);
       
    76 		return result;
       
    77 	}
       
    78 
       
    79 }