matthiasblaesing commented on PR #9234: URL: https://github.com/apache/netbeans/pull/9234#issuecomment-4042158438
Did you test your change? For me it did not. I traced the code that is invoked and I get this: - the context menu opens the `GenerateCodePanel` - the panel calls into a `CodeGenerator` (see `org.netbeans.modules.editor.codegen.GenerateCodePanel.invokeSelected()`) - that calls into `org.netbeans.modules.php.editor.codegen.CGSGenerator.GenType.METHODS.getTemplateText(CGSInfo)` - that calls into `org.netbeans.modules.php.editor.codegen.SelectedPropertyMethodsCreator.create(List<T>, SinglePropertyMethodCreator<T>)`, the only selected element is `__construct` - that calls into `org.netbeans.modules.php.editor.codegen.SinglePropertyMethodCreator.InheritedMethodCreator.create(MethodProperty)` - and finally lands in `org.netbeans.modules.php.editor.elements.BaseFunctionElementSupport.asString(PrintAs, BaseFunctionElement, TypeNameResolver, PhpVersion)` - the return type is generated in the case `DeclarationWithoutBody` -- 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
