Chris2011 opened a new pull request, #4448:
URL: https://github.com/apache/netbeans/pull/4448

   The motivation about this was to implement those missing folding blocks in 
java editor. This was just implemented for imports, classes, inner classes, 
methods but not for stuff inside methods like if/else if/else, try/catch and 
loops because all of them are treated like as code blocks.
   
   
   Please bare with me and my knowledge of the stuff. Unfortunately I dunno why 
the if statement was implemented, that I removed from JavaElementFoldVisitor 
but this prevents it from adding folding rectangle to those blocks. This is the 
only line that I need to change in general but, now I changed the method code 
block to general code-blocks because now it is not only for methods anymore.
   
   Before:
   
   <img width="686" alt="image" 
src="https://user-images.githubusercontent.com/795658/181634976-87444df2-b598-417b-8b2a-99858e48fb4c.png";>
   
   
   After:
   
   <img width="720" alt="image" 
src="https://user-images.githubusercontent.com/795658/181635432-5d2c7d91-59bd-47e3-828b-ea46999c17a5.png";>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to