This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 144926 - Wrong autoformat of long string concatenation
Summary: Wrong autoformat of long string concatenation
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-23 18:20 UTC by divenvrsk
Modified: 2009-07-03 16:02 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description divenvrsk 2008-08-23 18:20:59 UTC
Hi,

Before Source -> Format (Alt+Shift+F) we have :
 - public static final int FORM_ID_LOADING = 0,  FORM_ID_LANGUAGE = 1,  FORM_ID_SOUND = 2, 
            // main menu
             FORM_ID_MAIN = 3,  FORM_ID_SETTINGS = 4,  FORM_ID_RESET_CONFIRM = 5,  FORM_ID_HELP = 6,  FORM_ID_ABOUT = 
7,  
             FORM_ID_EXIT = 8,  FORM_ID_CHOOSE_LEVEL = 9,  FORM_ID_CHOOSE_LEVEL_DETAIL = 10,  FORM_ID_OUTRO = 11,  
FORM_ID_OVERWRITE = 12,  
             FORM_ID_HELP_GENERAL = 13,  FORM_ID_HELP_WEAPONS = 14,  FORM_ID_HELP_COVER = 15,  FORM_ID_QUICK_GUIDE = 
16,  FORM_ID_MORE_GAMES = 17,  
             FORM_ID_HIGHS = 18,  FORM_ID_HIGHS_DETAIL = 19, 
             // in-game
             FORM_ID_DIALOG = 20,  FORM_ID_PAUSE = 21,  FORM_ID_EXIT_PAUSE = 22,  FORM_ID_GAME_OVER = 23,  
             FORM_ID_WIN_LEVEL = 24,  FORM_ID_WIN_GAME = 25, 
             // demo forms
             FORM_ID_DEMO_DESCRIPTION = 26,  FORM_ID_DEMO_OVER = 27,  FORM_ID_COUNT = 28;

normal variables with normal dividing lines, but after autoformat with Source -> Format we get all variables at one 
line. Very inconvenient.
Comment 1 rfs 2009-07-03 16:02:23 UTC
the same problem like Issue 144926 with long string concatenation:

this will become after autoformat one line:
String test = " this is a long string showing the described problem " 
        + " and this should be in the next line";

Problem: after autoformat this is in one line

String test = " this is a long string showing the described problem " + " and this should be in the next line";