Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Enhancement request: Time saver in "run configurations"(Create a more user-friendly name in newly created run configurations)
Enhancement request: Time saver in "run configurations" [message #1857190] Mon, 23 January 2023 15:20 Go to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 149
Registered: October 2018
Senior Member
Hello,

I have a habit to named my source files that contain the "main" method as (surprise, surprise...) Main.java.

I have numerous projects that contain multiple packages.

When I run the Main class of a given package, eclipse create run configurations that looks like this:

index.php/fa/42861/0/

IMHO, it will be more useful and time saver to create run configuration with a name in a format like <project> <full class name> so
the run configurations will look like this:

index.php/fa/42862/0/

The biggest time saver that we will have is in the "run popup" that will look like this:

index.php/fa/42863/0/

Any comment will be welcome.

Regards.

[Updated on: Thu, 26 January 2023 12:49]

Report message to a moderator

Re: Time saver in "run configurations" [message #1857198 is a reply to message #1857190] Tue, 24 January 2023 08:56 Go to previous messageGo to next message
Jay Arthanareeswaran is currently offline Jay ArthanareeswaranFriend
Messages: 134
Registered: July 2009
Senior Member
Yes, I agree it will be useful. But I am not sure it will be easy to convince the committers to add this enhancement that will probably server a very specific use-case. But still worth an enhancement request perhaps.
Re: Time saver in "run configurations" [message #1857199 is a reply to message #1857198] Tue, 24 January 2023 10:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
I agree this could be improved. Perhaps there could even be some preference with a "template" for how to synthesize the name. But, without contributing actual code toward a solution, the request is likely to just sit in a list...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Time saver in "run configurations" [message #1857203 is a reply to message #1857199] Tue, 24 January 2023 12:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7681
Registered: July 2009
Senior Member
Yes, but the fix could be simpler. (I often rename my launches with hierarchical names to provide some alphabetical discipline.) I'm not sure that the project qualification is necessary. A fully qualified class name should do given that the packaging should point directly to a project anyway. Therefore the code fix might be as simple as a replacing a call to Class.getSimpleName() by Class.getName(). Of course documentation and testing may take longer.

Re: Time saver in "run configurations" [message #1857204 is a reply to message #1857203] Tue, 24 January 2023 13:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
I agree. A qualified class name would be an improvement...

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Time saver in "run configurations" [message #1857208 is a reply to message #1857204] Tue, 24 January 2023 17:02 Go to previous messageGo to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 149
Registered: October 2018
Senior Member
Thanks for responding to the idea.

The project name make sense if we have multi projects open at the same time.

When I wrote <full class name> I meant qualified name as the picture above show.

I like the idea of Ed Merks of using "template".

How should I proceed ?
Re: Enhancement request: Time saver in "run configurations" [message #1858919 is a reply to message #1857190] Mon, 01 May 2023 15:27 Go to previous messageGo to next message
Jeff Johnston is currently offline Jeff JohnstonFriend
Messages: 215
Registered: July 2009
Senior Member
FYI: An issue has been created by Eitan and PRs has been merged for the 2023-06 M2 milestone to add a Java preference set of options which specify qualifying the generated Run/Debug configuration names for Java Applications, or JUnit tests, or Java Applets.
Re: Enhancement request: Time saver in "run configurations" [message #1858923 is a reply to message #1858919] Mon, 01 May 2023 17:04 Go to previous message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 149
Registered: October 2018
Senior Member
And it looks and works great !!
Great job by Jeff Johnston (jjohnstn)
Previous Topic:Quickfix won't import JPanel
Next Topic:This new version is filled with red x everywhere
Goto Forum:
  


Current Time: Wed Feb 05 11:57:31 GMT 2025

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

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

Back to the top