Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Enum Formatter wrapping
Enum Formatter wrapping [message #1841232] Fri, 07 May 2021 05:19
Eclipse UserFriend
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: Fri Jul 04 00:36:09 EDT 2025

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

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

Back to the top