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.
It would be great if the editor would provide a possibility to plug to the line formatting process. Today it is hardwired in BaseKit.InsertBreakAction and you have to subclass the action. The registration via the mime lookup would help. See also org.netbeans.modules.editor.java.JavaKit.JavaInsertBreakAction that temporarily work around this.
Is not the API/SPI in the editor/indent module suitable for this? If yes, please close this RFE. If not, make it a defect and describe usecases that are not covered by the API. Thanks a lot. Oh, btw, the API's javadoc is probably still not available on the web site. I'll fix that.
The API is nice. I have not been aware of it at all. Publishing the javadoc would be great to advertise this and I would propose to deprecate IndentEngine with a reference to the editor/indent. Unfortunately I need to distinguish cases user enters a new line. It is why I mentioned InsertBreakAction. Use case 1: In order to generate javadoc in editor user writes "/**" + <ENTER>. I need to close the javadoc with "*/" and generate the content. Use case 2: User writes a bracket + <ENTER>. I want to close it. So it relates rather to editor actions than to indentation/formatting directly as I need to plug to the point when the indentation is triggered.
Already fixed with the Typing Hooks API.