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.
Options -> Editor -> General tab There is section code folding. Some options for collapsing by default are java specific and don't fit other languages like PHP. Collapse by Default: -Methods : ok with PHP -Inner classes : shouldn't be there for PHP -Imports : shouldn't be there for PHP -Javadoc Comments: if it will be renamed to Comments or something general, then it's ok. -Initial Comments: ok with PHP
same problem for C++ -Imports : shouldn't be there for C++ -Javadoc Comments: if it will be renamed to Comments or something general, then it's ok.
The names (except for Javadoc Comments) are not java centric at all. They just refer to some concepts/constructs that may or may not exist in modern languages. Inner classes: classes within a class. I think there can be inner classes in PHP? Imports: other files referenced from a file. I think both C++ and PHP has this concept - C++ has includes, PHP includes and requires. So, the settings are valid and we should keep them. If their names are not ideal, please, suggest better alternatives. I think we could change 'Javadoc Comments' to 'Documentation Comments' and maybe 'Imports' to 'Imports/Includes'. CCing Ondra, he might have some ideas.
- PHP doesn't have inner classes. - In php include/require is not the same as a import. In php it depends on the include/require statement position, because you can use in the included file with variables, which are defined in the file, from which is included. This is different behavior from java and the include statements are on the line, where are needed.
Ok, well then just ignore those settings in php fold manager. I'm sorry, I probably still don't see the problem...
We are ignoring the import setting in PHP, but when you have only PHP IDE distro, then it looks strange from user poin of view. User doesn't know this setting is applicable for java.
If I understand the request there should be a "Code Folding" tab under Options->Editor with language combo like for other tabs. We should implement this within 7.0.
*** This bug has been marked as a duplicate of bug 222981 ***