Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Enum Formatter wrapping
Enum Formatter wrapping [message #1841232] Fri, 07 May 2021 09:19
Lucio Menci is currently offline Lucio MenciFriend
Messages: 7
Registered: June 2017
Junior Member
Hi!

I'd like that an enum has to be formatted like this:
public enum Colors {
    Red(255, 0, 0),
    Green(0, 255, 0),
    Blue(0, 0, 255);
    private Colors(int r, int g, int b) {
        [...]
    }
}


But the formatters write this:
public enum Colors {
    Red(
        255,
        0,
        0
    ),
    Green(
        0,
        255,
        0
    ),
    Blue(
        0,
        0,
        255
    );
    private Colors(int r, int g, int b) {
        [...]
    }
}


This is done even if I have thoose settings:
LineWrapping / Wrapping settings / enum declarations
    Constants:  Do not wrap
    implements clause: Do not wrap
    Constant arguments: Do not wrap



Why?
Previous Topic:Go to Interface Implementation - faster than CTRL-T ?
Next Topic:is Jakarta Web Service compatible with tomcat 7
Goto Forum:
  


Current Time: Thu Apr 18 06:06:24 GMT 2024

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

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

Back to the top