debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/EmulationMainTab.java
changeset 203 e2002a613358
parent 0 fb279309251b
child 273 c2533fd23253
equal deleted inserted replaced
202:4eeba852ae0b 203:e2002a613358
    17 package com.nokia.cdt.internal.debug.launch.ui;
    17 package com.nokia.cdt.internal.debug.launch.ui;
    18 
    18 
    19 import com.freescale.cdt.debug.cw.core.settings.DebuggerCommonData;
    19 import com.freescale.cdt.debug.cw.core.settings.DebuggerCommonData;
    20 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
    20 import com.nokia.cdt.internal.debug.launch.LaunchPlugin;
    21 
    21 
    22 import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
       
    23 import org.eclipse.core.resources.*;
    22 import org.eclipse.core.resources.*;
    24 import org.eclipse.core.runtime.CoreException;
    23 import org.eclipse.core.runtime.CoreException;
    25 import org.eclipse.debug.core.ILaunchConfiguration;
    24 import org.eclipse.debug.core.ILaunchConfiguration;
    26 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
    25 import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
    27 import org.eclipse.swt.SWT;
    26 import org.eclipse.swt.SWT;
    44 	
    43 	
    45 	public void createControl(Composite parent) {
    44 	public void createControl(Composite parent) {
    46 		Composite comp = new Composite(parent, SWT.NONE);
    45 		Composite comp = new Composite(parent, SWT.NONE);
    47 		setControl(comp);
    46 		setControl(comp);
    48 		
    47 		
    49 		LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.EMULATION_MAIN);
    48 		LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.EMULATION_MAIN);
    50 		// Move the focus from the launch config view to this composite. Afterward the focus will move with the tabs.
    49 		// Move the focus from the launch config view to this composite. Afterward the focus will move with the tabs.
    51 		comp.setFocus(); 
    50 		comp.setFocus(); 
    52 		
    51 		
    53 		if (parent instanceof TabFolder)
    52 		if (parent instanceof TabFolder)
    54 		{
    53 		{
    79 
    78 
    80 		createVerticalSpacer(comp, 1);
    79 		createVerticalSpacer(comp, 1);
    81 		if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) {
    80 		if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) {
    82 			createTerminalOption(comp, 1);
    81 			createTerminalOption(comp, 1);
    83 		}
    82 		}
    84 		LaunchUIPlugin.setDialogShell(parent.getShell());
       
    85 
    83 
    86 		ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD);
    84 		ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD);
    87 
    85 
    88 	}
    86 	}
    89 
    87