Rearranger - method name matching

I want to setup rules such that methods that end with a certain string (e.g., "Changed") are grouped. I notice you have a "match" option for methods but when I try putting in "Changed" or "*Changed" it doesn't work. Is this possible? If so, please explain. If not, can you add this kind of feature? :)

0

If I recall correctly the name matching in the Rearranger plugin is by regular expression pattern, e.g.:
*Changed

Bas

0

Damn, I was really hoping that would work but no. :(

I didn't see any information on it when I scanned the wiki doc either.

0

Marc Stock wrote:

Damn, I was really hoping that would work but no. :(


Strange, I just tried it out myself to test and it works fine for me.

Bas

0

Ok, I got it to work. I used the regular expression as you suggested but I also had to set exclusion (not match) rules for the "OTHER METHODS" section. Even though the "OTHER METHODS" section had a lower priority than the new section I was trying to create, the *Changed methods would still stay in the "OTHER METHODS" section.

Thanks for the help. :)

0

请先登录再写评论。