debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/SophiaConfigurationTabGroup.java
changeset 0 fb279309251b
child 583 0c45a379d354
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     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 com.nokia.cdt.debug.cw.symbian.SettingsData;
       
    20 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
       
    21 
       
    22 import org.eclipse.core.resources.IProject;
       
    23 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
       
    24 import org.eclipse.debug.ui.*;
       
    25 import org.eclipse.debug.ui.sourcelookup.SourceLookupTab;
       
    26 
       
    27 public class SophiaConfigurationTabGroup extends
       
    28 		AbstractLaunchConfigurationTabGroup {
       
    29 
       
    30 	public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
       
    31 		ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] {
       
    32 				new StopModeMainTab(),				
       
    33 				new SophiaTargetInterfaceTab(),
       
    34 				new StopModeDebuggerTab(),
       
    35 				new RomImageTab(),
       
    36 				new ExecutablesTab(false),
       
    37 				new SourceLookupTab(),
       
    38 				new CommonTab() 
       
    39 			};
       
    40 			setTabs(tabs);
       
    41 	}
       
    42 	
       
    43 	
       
    44 	/**
       
    45 	 * Set default for all preferences related to this launch configuration.
       
    46 	 * 
       
    47 	 * @see ILaunchConfigurationTabGroup#setDefaults(ILaunchConfigurationWorkingCopy)
       
    48 	 */
       
    49 	public void setDefaults(ILaunchConfigurationWorkingCopy config) {
       
    50 		// Call this to make sure options on those CDT common tabs such as "Common"
       
    51 		// and "Source" have correct default.
       
    52 		super.setDefaults(config);
       
    53 
       
    54 		// Get the current selected project in C project view.
       
    55 		IProject project = LaunchPlugin.getSelectedProject();
       
    56 
       
    57 		SettingsData.setDefaults(config, SettingsData.LaunchConfig_SophiaSTI, project);
       
    58 	}
       
    59 }