Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Organizing classes in package explorer tab
Organizing classes in package explorer tab [message #1815255] Fri, 27 September 2019 22:13 Go to next message
Vasco Domingues is currently offline Vasco DominguesFriend
Messages: 1
Registered: September 2019
Junior Member
Hello everyone,

I started this week learning java using Eclipse. So far so good.
I was wondering how could I organize my classe names in my explorer tab.
For instance, I have a series of classes named:

Exercise1
Exercise10
Exercise2
Exercise3
Exercise4
Exercise5
Exercise6
Exercise7
Exercise8
Exercise9

I would like to have Exercise10 class next to Exercise9. Is that possible? Do you have any tips/hints?

Thank you!
Re: Organizing classes in package explorer tab [message #1815276 is a reply to message #1815255] Sun, 29 September 2019 07:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Given that sorting text is generally lexicographic, unless there were the option to use a collator that handles numeric substrings as numbers that are compared numerically, this is no way to achieve your sorting order with the numbering scheme you've chosen. If you always used a two-digit number, i,e., to support 01, 02, ...99, then a lexicographic sort will give you the desired order.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Missing Dependencies when installing via Eclipse Marketplace
Next Topic:View report
Goto Forum:
  


Current Time: Thu Sep 19 19:06:30 GMT 2024

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

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

Back to the top