Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Modify Default Run Configuration for Test Plugins
Modify Default Run Configuration for Test Plugins [message #1859042] Mon, 08 May 2023 07:47 Go to next message
Eclipse UserFriend
I have made a certain progress in the Eclipse plugin I'm creating where I can run a maven command programmatically from my plugin.

Now, I am exploring on the lines to modify default launch configuration (Delegates) of other Test Plugins.

Few questions I have on my mind -

- Is there a way I can modify the launch configuration template (VM argument) that is getting extended by other plugins?

- Do we have Eclipse events that can trigger automatically on before a launcher is getting created or can listen to maven goals execution (basically dependency resolution) ?


Re: Modify Default Run Configuration for Test Plugins [message #1859719 is a reply to message #1859042] Fri, 23 June 2023 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Hey Kamalpreet, great work on your plugin development! To answer your questions:

1. You can indeed modify the launch configuration template. This can be done in the launch configurations dialog. Select the configuration you want to change, then modify the VM arguments in the 'Arguments' tab.
2. Eclipse doesn't have explicit events for these actions, but you can use the ILaunchManager's addLaunchConfigurationListener method to listen for changes in launch configurations. For Maven goals, consider using Maven's own event system.

Remember, your plugin should be robust and handle potential conflicts gracefully.
Re: Modify Default Run Configuration for Test Plugins [message #1860394 is a reply to message #1859719] Wed, 02 August 2023 19:42 Go to previous message
Eclipse UserFriend
Nice work on your Eclipse plugin progress! For modifying launch config templates, you might need to dive into extension points or contribute to existing ones. As for Eclipse events, maybe try hooking into ILaunchConfigurationListener? Good luck!

[Updated on: Thu, 03 August 2023 08:42] by Moderator

Previous Topic:multiple classes with switch case statements
Next Topic:Java Compiler Version does not get saves
Goto Forum:
  


Current Time: Tue Jun 24 10:40:30 EDT 2025

Powered by FUDForum. Page generated in 0.64113 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top