[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-debug-dev] How can I extend launchConfigurationType org.eclipse.jdt.launching.localJavaApplication to just a new mode?
|
Hi Frank,
> I just want to reuse all properties of the debug mode but want to use the new mode as indicator for using my new LaunchDelegate.
This sounds like you want to reuse all of the Java launch bits but be able to re-target the your launch delegate?
If this is the case, then I would suggest looking into mixed-mode launching and the launchConfigurationTabs extension point from platform debug UI. An example
for mixed-mode launching / tabs can be found: http://www.eclipse.org/eclipse/debug/misc/launch_mode_example.zip
The basic idea for mix-mode launching is that you can specify a modeCombination - say debug AND ddebug - that can be used to re-target a launch delegate for an existing launch configuration type / launch group.
Michael Rennie
"Frank E." ---2010/11/02 12:16:34 PM---Hi. I want to use a launchDelegate to be used, when launched in a new Debugmode called "ddbg". So I
From: "Frank E." <klient4you-eclipse@xxxxxxxx>
To: jdt-debug-dev@xxxxxxxxxxx
Date: 2010/11/02 12:16 PM
Subject: [jdt-debug-dev] How can I extend launchConfigurationType org.eclipse.jdt.launching.localJavaApplication to just a new mode?
Sent by: jdt-debug-dev-bounces@xxxxxxxxxxx
Hi.
I want to use a launchDelegate to be used, when launched in a new Debugmode called "ddbg". So I defined
<extension
point="org.eclipse.debug.core.launchModes">
<launchMode
label="label"
launchAsLabel="Distributed Debug"
mode="ddbg">
</launchMode>
</extension>
.
After this I defined the extension for the Launch Delegate as follows:
<extension
point="org.eclipse.debug.core.launchDelegates">
<launchDelegate
delegate="<my-plugin-path>.JavaLaunchDelegate"
delegateDescription="xxxx"
id="<my-plugin-id>.localJavaApplication"
modes="ddbg"
name="Distributed Debug"
sourceLocatorId="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"
sourcePathComputerId="org.eclipse.jdt.launching.sourceLookup.javaSourcePathComputer"
type="org.eclipse.jdt.launching.localJavaApplication">
</launchDelegate>
</extension>.
To explain: My <my-plugin-path>.JavaLaunchDelegate.java instance will delegate some work to the original delegate of the type org.eclipse.jdt.launching.localJavaApplication but should be used for the new mode "ddbg" only.
At this status it does not show the new Debug mode "ddbg". So I further made the extension :
<extension
point="org.eclipse.debug.ui.launchGroups">
<launchGroup
label="Distributed Debug"
bannerImage="icons/sample.gif"
image="icons/sample.gif"
mode="ddbg"
id="DistribDebug.launchGroup"
title="New Distrib Debug Launch Group">
</launchGroup>
</extension>
.
But also the new mode extends not the modes of org.eclipse.debug.core.launchConfigurationTypes with id :org.eclipse.jdt.launching.localJavaApplication.
I just want to reuse all properties of the debug mode but want to use the new mode as indicator for using my new LaunchDelegate.
What are the missing steps?
Kind regards.
Frank E. |
_______________________________________________
jdt-debug-dev mailing list
jdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-debug-dev
![GIF image](gif4AKhzsCdql.gif)