Skip to main content



      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 10:20 Go to next message
Eclipse UserFriend
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 07:49] by Moderator

Re: Time saver in "run configurations" [message #1857198 is a reply to message #1857190] Tue, 24 January 2023 03:56 Go to previous messageGo to next message
Eclipse UserFriend
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 05:31 Go to previous messageGo to next message
Eclipse UserFriend
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...
Re: Time saver in "run configurations" [message #1857203 is a reply to message #1857199] Tue, 24 January 2023 07:58 Go to previous messageGo to next message
Eclipse UserFriend
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 08:53 Go to previous messageGo to next message
Eclipse UserFriend
I agree. A qualified class name would be an improvement...
Re: Time saver in "run configurations" [message #1857208 is a reply to message #1857204] Tue, 24 January 2023 12:02 Go to previous messageGo to next message
Eclipse UserFriend
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 11:27 Go to previous messageGo to next message
Eclipse UserFriend
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 13:04 Go to previous message
Eclipse UserFriend
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: Thu Jul 03 09:04:01 EDT 2025

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

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

Back to the top