{"id":4,"date":"2012-05-25T09:22:00","date_gmt":"2012-05-25T09:22:00","guid":{"rendered":"http:\/\/www.jensd.de\/wordpress\/?p=4"},"modified":"2013-01-18T13:57:10","modified_gmt":"2013-01-18T12:57:10","slug":"fluent-api-code-formatting-in-netbeans-7-2-beta","status":"publish","type":"post","link":"https:\/\/www.jensd.de\/wordpress\/?p=4","title":{"rendered":"Fluent API code formatting in Netbeans 7.2 beta"},"content":{"rendered":"<p>I always missed a way to format Fluent API code blocks in Netbeans properly.<\/p>\n<p>In Netbeans 7.1 at last there was an option to set the wrapping for chained method calls\u00a0via:<br \/>\nPreferences:\u00a0<b>Editor<\/b>\u00a0-&gt;\u00a0<b>Language: Java<\/b>\u00a0-&gt;\u00a0<b>Category: Wrapping<\/b><\/p>\n<h2>Netbeans 7.1<\/h2>\n<p><a href=\"http:\/\/4.bp.blogspot.com\/-T5vGA_i0A1U\/T79HZVuahHI\/AAAAAAAAEfc\/szMBhDYjA98\/s1600\/fluent_in_netbeans71_result.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/4.bp.blogspot.com\/-T5vGA_i0A1U\/T79HZVuahHI\/AAAAAAAAEfc\/szMBhDYjA98\/s1600\/fluent_in_netbeans71_result.png\" border=\"0\" \/><\/a><a href=\"http:\/\/1.bp.blogspot.com\/-A_4fjmL9bu0\/T79HZFzI_tI\/AAAAAAAAEfQ\/8Hah5C4amy8\/s1600\/fluent_in_netbeans71.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/1.bp.blogspot.com\/-A_4fjmL9bu0\/T79HZFzI_tI\/AAAAAAAAEfQ\/8Hah5C4amy8\/s320\/fluent_in_netbeans71.png\" width=\"246\" height=\"320\" border=\"0\" \/><\/a><br \/>\n<a href=\"http:\/\/2.bp.blogspot.com\/-A_4fjmL9bu0\/T79HZFzI_tI\/AAAAAAAAEfQ\/8Hah5C4amy8\/s1600\/fluent_in_netbeans71.png\"><br \/>\n<\/a><br \/>\n<a href=\"http:\/\/2.bp.blogspot.com\/-JV9maVMIbQU\/T79HYDXsLAI\/AAAAAAAAEe4\/Fz967Is7p1Y\/s1600\/fluent_in_netbeans72.png\"><br \/>\n<\/a><br \/>\n<a href=\"http:\/\/2.bp.blogspot.com\/-1vYgnPMPdsg\/T79HYVOfmzI\/AAAAAAAAEfE\/t7R-jpalYV4\/s1600\/fluent_in_netbeans72_result.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/2.bp.blogspot.com\/-1vYgnPMPdsg\/T79HYVOfmzI\/AAAAAAAAEfE\/t7R-jpalYV4\/s320\/fluent_in_netbeans72_result.png\" width=\"267\" height=\"173\" border=\"0\" \/><\/a><\/p>\n<h2>Netbeans 7.2<\/h2>\n<p>Netbeans 7.2 now offers an additional option to choose whether the wrapping should take place:<br \/>\n<a href=\"http:\/\/2.bp.blogspot.com\/-JV9maVMIbQU\/T79HYDXsLAI\/AAAAAAAAEe4\/Fz967Is7p1Y\/s1600\/fluent_in_netbeans72.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/2.bp.blogspot.com\/-JV9maVMIbQU\/T79HYDXsLAI\/AAAAAAAAEe4\/Fz967Is7p1Y\/s320\/fluent_in_netbeans72.png\" width=\"302\" height=\"66\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I always missed a way to format Fluent API code blocks in Netbeans properly. In Netbeans 7.1 at last there was an option to set the wrapping for chained method calls\u00a0via: Preferences:\u00a0Editor\u00a0-&gt;\u00a0Language: Java\u00a0-&gt;\u00a0Category: Wrapping Netbeans 7.1 Netbeans 7.2 Netbeans 7.2 now offers an additional option to choose whether the wrapping should take place:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false,"jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[2,3],"tags":[],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p38FCL-4","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":2,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":13,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions\/13"}],"wp:attachment":[{"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jensd.de\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}