1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 446013 - Improvements to CDT launch configurations context help

Link "C/C++ Application", "C/C++ Remote Application" and "GDB Hardware
Debugging" launch configurations tab groups to existing "C/C++
Development User Guide" documentation.

Change-Id: I8220fe14ab22f14167ee2026c4a1f93b3cc7cd3e
Signed-off-by: Iulia Vasii <IuliaMadalina.Vasii@freescale.com>
Reviewed-on: https://git.eclipse.org/r/34433
Reviewed-by: Teodor Madan <teodor.madan@freescale.com>
Tested-by: Teodor Madan <teodor.madan@freescale.com>
This commit is contained in:
Iulia Vasii 2014-10-06 10:20:11 +03:00 committed by Teodor Madan
parent bb461328b9
commit 4b833a066a
7 changed files with 49 additions and 17 deletions

View file

@ -27,6 +27,7 @@
package org.eclipse.cdt.launch.remote.tabs; package org.eclipse.cdt.launch.remote.tabs;
import org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab; import org.eclipse.cdt.dsf.gdb.internal.ui.launching.CMainTab;
import org.eclipse.cdt.internal.launch.remote.Activator;
import org.eclipse.cdt.internal.launch.remote.Messages; import org.eclipse.cdt.internal.launch.remote.Messages;
import org.eclipse.cdt.launch.remote.IRemoteConnectionConfigurationConstants; import org.eclipse.cdt.launch.remote.IRemoteConnectionConfigurationConstants;
import org.eclipse.cdt.launch.remote.IRemoteConnectionHostConstants; import org.eclipse.cdt.launch.remote.IRemoteConnectionHostConstants;
@ -128,7 +129,7 @@ public class RemoteCDSFMainTab extends CMainTab {
.getWorkbench() .getWorkbench()
.getHelpSystem() .getHelpSystem()
.setHelp(getControl(), .setHelp(getControl(),
"org.eclipse.rse.internal.remotecdt.launchgroup"); //$NON-NLS-1$ Activator.PLUGIN_ID + ".launchgroup"); //$NON-NLS-1$
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2006, 2011 PalmSource, Inc. and others. * Copyright (c) 2006, 2014 PalmSource, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -26,6 +26,7 @@
package org.eclipse.cdt.launch.remote.tabs; package org.eclipse.cdt.launch.remote.tabs;
import org.eclipse.cdt.internal.launch.remote.Activator;
import org.eclipse.cdt.internal.launch.remote.Messages; import org.eclipse.cdt.internal.launch.remote.Messages;
import org.eclipse.cdt.launch.remote.IRemoteConnectionConfigurationConstants; import org.eclipse.cdt.launch.remote.IRemoteConnectionConfigurationConstants;
import org.eclipse.cdt.launch.remote.IRemoteConnectionHostConstants; import org.eclipse.cdt.launch.remote.IRemoteConnectionHostConstants;
@ -142,7 +143,7 @@ public class RemoteCMainTab extends CMainTab {
}); });
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(),
"org.eclipse.rse.internal.remotecdt.launchgroup"); //$NON-NLS-1$ Activator.PLUGIN_ID + ".launchgroup"); //$NON-NLS-1$
// //No more needed according to // //No more needed according to
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=178832 // https://bugs.eclipse.org/bugs/show_bug.cgi?id=178832

View file

@ -35,37 +35,43 @@
<extension <extension
point="org.eclipse.debug.ui.launchConfigurationTabGroups"> point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.applicationLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.applicationLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.applicationLaunchTabGroup"
type="org.eclipse.cdt.launch.applicationLaunchType">
<launchMode mode="debug"/> <launchMode mode="debug"/>
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.applicationLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.applicationRunLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.applicationRunLaunchTabGroup"
type="org.eclipse.cdt.launch.applicationLaunchType">
<launchMode mode="run"/> <launchMode mode="run"/>
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.attachLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.attachLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.attachLaunchTabGroup"
type="org.eclipse.cdt.launch.attachLaunchType">
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.postmortemLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.postmortemLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.postmortemLaunchTabGroup"
type="org.eclipse.cdt.launch.postmortemLaunchType">
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.remoteApplicationLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.remoteApplicationLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.remoteApplicationLaunchTabGroup"
type="org.eclipse.cdt.launch.remoteApplicationLaunchType">
<launchMode mode="debug"/> <launchMode mode="debug"/>
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
<launchConfigurationTabGroup <launchConfigurationTabGroup
type="org.eclipse.cdt.launch.remoteApplicationLaunchType"
class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.internal.ui.launch.PlaceHolderLaunchConfigurationTabGroup"
id="org.eclipse.cdt.launch.remoteApplicationRunLaunchTabGroup"> helpContextId="org.eclipse.cdt.debug.ui.cdt_debugging_projects"
id="org.eclipse.cdt.launch.remoteApplicationRunLaunchTabGroup"
type="org.eclipse.cdt.launch.remoteApplicationLaunchType">
<launchMode mode="run"/> <launchMode mode="run"/>
</launchConfigurationTabGroup> </launchConfigurationTabGroup>
</extension> </extension>

View file

@ -52,4 +52,12 @@
label="Common"/> label="Common"/>
</context> </context>
</contexts> <context id="cdt_debugging_projects" title="Debugging Projects">
<description>How to debug projects, click below to see help.</description>
<topic href="reference/cdt_o_run_dbg_pages.htm"
label="Launch Configurations Common Tabs"/>
<topic href="getting_started/cdt_w_debug.htm"
label="Debugging Projects"/>
</context>
</contexts>

View file

@ -69,6 +69,18 @@
file="contexts_CDT_LAUNCH.xml" file="contexts_CDT_LAUNCH.xml"
plugin="org.eclipse.cdt.launch"> plugin="org.eclipse.cdt.launch">
</contexts> </contexts>
<contexts
file="contexts_CDT_LAUNCH.xml"
plugin="org.eclipse.cdt.debug.gdbjtag.ui">
</contexts>
<contexts
file="contexts_CDT_LAUNCH.xml"
plugin="org.eclipse.cdt.dsf.gdb.ui">
</contexts>
<contexts
file="contexts_CDT_LAUNCH.xml"
plugin="org.eclipse.cdt.debug.ui">
</contexts>
<contexts <contexts
file="contexts_CDT_DEBUGGER_DSFGDB.xml" file="contexts_CDT_DEBUGGER_DSFGDB.xml"
plugin="org.eclipse.cdt.dsf.gdb.ui"> plugin="org.eclipse.cdt.dsf.gdb.ui">

View file

@ -12,6 +12,7 @@
point="org.eclipse.debug.ui.launchConfigurationTabGroups"> point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup <launchConfigurationTabGroup
class="org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagLaunchConfigurationTabGroup" class="org.eclipse.cdt.debug.gdbjtag.ui.GDBJtagLaunchConfigurationTabGroup"
helpContextId="org.eclipse.cdt.debug.gdbjtag.ui.cdt_debugging_projects"
id="org.eclipse.cdt.debug.gdbjtag.launchConfigurationTabGroup" id="org.eclipse.cdt.debug.gdbjtag.launchConfigurationTabGroup"
type="org.eclipse.cdt.debug.gdbjtag.launchConfigurationType"/> type="org.eclipse.cdt.debug.gdbjtag.launchConfigurationType"/>
</extension> </extension>

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007, 2012 QNX Software Systems and others. * Copyright (c) 2007, 2014 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -36,6 +36,7 @@ import org.eclipse.cdt.debug.mi.core.command.factories.CommandFactoryManager;
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants; import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
import org.eclipse.cdt.dsf.gdb.IGdbDebugPreferenceConstants; import org.eclipse.cdt.dsf.gdb.IGdbDebugPreferenceConstants;
import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin; import org.eclipse.cdt.dsf.gdb.internal.GdbPlugin;
import org.eclipse.cdt.dsf.gdb.internal.ui.launching.ICDTLaunchHelpContextIds;
import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfiguration;
@ -126,6 +127,8 @@ public class GDBJtagDSFDebuggerTab extends AbstractLaunchConfigurationTab {
}); });
// This checkbox needs an explanation. Attach context help to it. // This checkbox needs an explanation. Attach context help to it.
PlatformUI.getWorkbench().getHelpSystem().setHelp(fUpdateThreadlistOnSuspend, "org.eclipse.cdt.dsf.gdb.ui.update_threadlist_button_context"); //$NON-NLS-1$ PlatformUI.getWorkbench().getHelpSystem().setHelp(fUpdateThreadlistOnSuspend, "org.eclipse.cdt.dsf.gdb.ui.update_threadlist_button_context"); //$NON-NLS-1$
// Attach context help to this tab.
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), ICDTLaunchHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_DEBBUGER_TAB);
} }
private void browseButtonSelected(String title, Text text) { private void browseButtonSelected(String title, Text text) {