Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:47 Go to next message
Kamalpreet Kaur is currently offline Kamalpreet KaurFriend
Messages: 7
Registered: April 2023
Junior Member
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 07:58 Go to previous messageGo to next message
Kabiru Usman is currently offline Kabiru UsmanFriend
Messages: 42
Registered: April 2023
Member
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 23:42 Go to previous message
Connor Evans is currently offline Connor EvansFriend
Messages: 12
Registered: August 2023
Junior Member
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 12:42]

Report message to a moderator

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


Current Time: Mon Jan 13 08:19:42 GMT 2025

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

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

Back to the top