简体   繁体   English

Eclipse:在Package Explorer中排序

[英]Eclipse: Sorting in Package Explorer

I have a package structure like this: 我有一个这样的包结构:

xxx.problem1
xxx.problem2
...
xxx.problem99

The imperfection is the sorting in Eclipse: xxx.problem10, xxx.problem11, ... is shown above xxx.problem2 in the package explorer. 不完美之处是在Eclipse中的排序:xxx.problem10,xxx.problem11,...在软件包浏览器的xxx.problem2上方显示。

I would like to see it in this way: 我希望以这种方式看到它:

xxx.problem1
xxx.problem2
xxx.problem9
xxx.problem10
xxx.problem11
...

Is there a possibility to have this more human logical sorting used in the package explorer? 可以在软件包资源管理器中使用这种更人性化的逻辑排序吗?

Eclipse can't sort packages like that. Eclipse不能像这样对包进行排序。

If you want to rename, you can do a global regex replace and replace: 如果要重命名,可以执行全局正则表达式替换并替换:

\.problem([0-9][.;])

With: 附:

\.problem0$1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM