Adding a launch configuration tab to a CDT launch [message #971569] |
Sun, 04 November 2012 20:04  |
Eclipse User |
|
|
|
I have a custom launch configuration tab which I've successfully added to standard Java launches. I'd like to do the same to CDT launches. In fact, I was certain that I had that working already, but when it wouldn't show up anymore in Juno, I tried again with Indigo and it doesn't show up there either.
Here are my two definitions:
<extension
point="org.eclipse.debug.ui.launchConfigurationTabs">
<tab
class="name.schedenig.eclipse.grepconsole.launch.GrepConsoleLaunchConfigurationTab"
group="org.eclipse.jdt.debug.ui.launchConfigurationTabGroup.localJavaApplication"
id="com.musit.eclipse.grepconsole.launch.jdt"
name="%title_grep_console">
<placement
after="org.eclipse.debug.ui.SHARED_LAUNCH_CONFIGURATON_DIALOG">
</placement>
</tab>
<tab
class="name.schedenig.eclipse.grepconsole.launch.GrepConsoleLaunchConfigurationTab"
group="org.eclipse.cdt.launch.applicationLaunchTabGroup"
id="com.musit.eclipse.grepconsole.launch.cdt"
name="%title_grep_console">
<placement
after="org.eclipse.debug.ui.SHARED_LAUNCH_CONFIGURATON_DIALOG">
</placement>
</tab>
</extension>
I'm not seeing any errors or log output at all when I open a CDT launch, but I don't see my tab either.
Any hints appreciated.
|
|
|
|
|
Re: Adding a launch configuration tab to a CDT launch [message #979695 is a reply to message #975500] |
Sat, 10 November 2012 23:28  |
Eclipse User |
|
|
|
Turns out I was indeed using the wrong group ID. This configuration works:
<tab
class="name.schedenig.eclipse.grepconsole.launch.GrepConsoleLaunchConfigurationTab"
group="org.eclipse.cdt.launch.applicationLaunchTabGroup"
id="name.schedenig.eclipse.grepconsole.launch.cdt"
name="%title_grep_console">
<placement
after="org.eclipse.debug.ui.SHARED_LAUNCH_CONFIGURATON_DIALOG">
</placement>
</tab>
I couldn't figure out where I got the "org.eclipse.debug.ui.SHARED_LAUNCH_CONFIGURATON_DIALOG" bit from, but it seems to work, regardless of which group I'm adding to, so I'll just stick to it, assuming that I had a good reason to use that ID to begin with.
I can't help wondering though: Is there no way to add a tab to *all* launch configurations, or at least "most" launch configurations, without providing separate extensions for each individual group ID?
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds