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: 4
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:Unable to dock windows Eclipse 2019-09R + MACOS BigSur
Next Topic:is Jakarta Web Service compatible with tomcat 7
Goto Forum:
  


Current Time: Tue Jun 22 15:18:50 GMT 2021

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

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

Back to the top