Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-debug-dev] How can I extend launchConfigurationType org.eclipse.jdt.launching.localJavaApplication to just a new mode?

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.


Back to the top