# HG changeset patch # User wpaul # Date 1244065690 18000 # Node ID e2002a613358e45786077e0f44513abd65b904d8 # Parent 4eeba852ae0bf08f48261dc3c31cb593258c1ee7 minor cleanup. diff -r 4eeba852ae0b -r e2002a613358 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/AttachMainTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/AttachMainTab.java Wed Jun 03 16:47:03 2009 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/AttachMainTab.java Wed Jun 03 16:48:10 2009 -0500 @@ -23,7 +23,6 @@ import com.nokia.carbide.remoteconnections.interfaces.IClientServiceSiteUI.IListener; import com.nokia.cdt.internal.debug.launch.LaunchPlugin; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; @@ -48,7 +47,7 @@ Composite comp = new Composite(parent, SWT.NONE); setControl(comp); - LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.ATTACH_MAIN); + LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.ATTACH_MAIN); GridLayout topLayout = new GridLayout(); comp.setLayout(topLayout); @@ -73,7 +72,6 @@ if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) { createTerminalOption(comp, 1); } - LaunchUIPlugin.setDialogShell(parent.getShell()); } public void setDefaults(ILaunchConfigurationWorkingCopy config) { diff -r 4eeba852ae0b -r e2002a613358 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/EmulationMainTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/EmulationMainTab.java Wed Jun 03 16:47:03 2009 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/EmulationMainTab.java Wed Jun 03 16:48:10 2009 -0500 @@ -19,7 +19,6 @@ import com.freescale.cdt.debug.cw.core.settings.DebuggerCommonData; import com.nokia.cdt.internal.debug.launch.LaunchPlugin; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; @@ -46,7 +45,7 @@ Composite comp = new Composite(parent, SWT.NONE); setControl(comp); - LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.EMULATION_MAIN); + LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.EMULATION_MAIN); // Move the focus from the launch config view to this composite. Afterward the focus will move with the tabs. comp.setFocus(); @@ -81,7 +80,6 @@ if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) { createTerminalOption(comp, 1); } - LaunchUIPlugin.setDialogShell(parent.getShell()); ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD); diff -r 4eeba852ae0b -r e2002a613358 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeArgumentsTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeArgumentsTab.java Wed Jun 03 16:47:03 2009 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeArgumentsTab.java Wed Jun 03 16:48:10 2009 -0500 @@ -20,7 +20,6 @@ import org.eclipse.cdt.launch.internal.ui.LaunchImages; import org.eclipse.cdt.launch.internal.ui.LaunchMessages; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.cdt.launch.ui.*; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; @@ -36,6 +35,8 @@ import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.*; +import com.nokia.cdt.internal.debug.launch.LaunchPlugin; + public class RunModeArgumentsTab extends CLaunchConfigurationTab { protected Text argumentsText; @@ -48,7 +49,7 @@ composite.setLayoutData(new GridData(GridData.FILL_BOTH)); setControl(composite); - LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_ARGUMNETS_TAB); + LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_ARGUMNETS_TAB); Group group = new Group(composite, SWT.NONE); Font font = composite.getFont(); @@ -80,8 +81,7 @@ argumentsText.setText(configuration.getAttribute(PreferenceConstants.J_PN_ProgramArguments, "")); //$NON-NLS-1$ } catch (CoreException e) { - setErrorMessage(LaunchMessages.getFormattedString("Launch.common.Exception_occurred_reading_configuration_EXCEPTION", e.getStatus().getMessage())); //$NON-NLS-1$ - LaunchUIPlugin.log(e); + LaunchPlugin.log(e); } } diff -r 4eeba852ae0b -r e2002a613358 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeMainTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeMainTab.java Wed Jun 03 16:47:03 2009 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/RunModeMainTab.java Wed Jun 03 16:48:10 2009 -0500 @@ -19,8 +19,6 @@ import java.util.StringTokenizer; import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants; -import org.eclipse.cdt.launch.internal.ui.LaunchMessages; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.core.resources.IResourceChangeEvent; import org.eclipse.core.resources.IResourceChangeListener; import org.eclipse.core.resources.ResourcesPlugin; @@ -68,7 +66,7 @@ Composite comp = new Composite(parent, SWT.NONE); setControl(comp); - LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.RUN_MODE_MAIN); + LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.RUN_MODE_MAIN); GridLayout topLayout = new GridLayout(); comp.setLayout(topLayout); @@ -97,7 +95,6 @@ if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) { createTerminalOption(comp, 1); } - LaunchUIPlugin.setDialogShell(parent.getShell()); ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_BUILD); } @@ -146,8 +143,7 @@ try { remoteText.setText(config.getAttribute(PreferenceConstants.J_PN_RemoteProcessToLaunch, "")); //$NON-NLS-1$ } catch (CoreException e) { - setErrorMessage(LaunchMessages.getFormattedString("Launch.common.Exception_occurred_reading_configuration_EXCEPTION", e.getStatus().getMessage())); //$NON-NLS-1$ - LaunchUIPlugin.log(e); + LaunchPlugin.log(e); } try { if (!RemoteConnectionsTRKHelper.configUsesConnectionAttribute(config)) { diff -r 4eeba852ae0b -r e2002a613358 debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/StopModeMainTab.java --- a/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/StopModeMainTab.java Wed Jun 03 16:47:03 2009 -0500 +++ b/debuggercdi/com.nokia.cdt.debug.launch/src/com/nokia/cdt/internal/debug/launch/ui/StopModeMainTab.java Wed Jun 03 16:48:10 2009 -0500 @@ -16,13 +16,14 @@ */ package com.nokia.cdt.internal.debug.launch.ui; -import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; +import com.nokia.cdt.internal.debug.launch.LaunchPlugin; + public class StopModeMainTab extends CarbideMainTab { @@ -30,7 +31,7 @@ Composite comp = new Composite(parent, SWT.NONE); setControl(comp); - LaunchUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.STOP_MODE_MAIN); + LaunchPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(getControl(), LaunchTabHelpIds.STOP_MODE_MAIN); GridLayout topLayout = new GridLayout(); comp.setLayout(topLayout); @@ -50,7 +51,6 @@ if (wantsTerminalOption() /*&& ProcessFactory.supportesTerminal()*/) { createTerminalOption(comp, 1); } - LaunchUIPlugin.setDialogShell(parent.getShell()); } public void setDefaults(ILaunchConfigurationWorkingCopy config) {