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.

Bug 140762 - General Code Folding options are java centric
Summary: General Code Folding options are java centric
Status: RESOLVED DUPLICATE of bug 222981
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-18 15:17 UTC by Petr Pisl
Modified: 2012-11-30 09:44 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2008-07-18 15:17:23 UTC
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
Comment 1 Vladimir Voskresensky 2008-07-18 15:50:50 UTC
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.
Comment 2 Vitezslav Stejskal 2008-07-22 14:09:00 UTC
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.
Comment 3 Petr Pisl 2008-07-22 16:55:36 UTC
- 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. 
Comment 4 Vitezslav Stejskal 2008-07-23 12:07:41 UTC
Ok, well then just ignore those settings in php fold manager. I'm sorry, I probably still don't see the problem...
Comment 5 Petr Pisl 2008-07-23 12:48:52 UTC
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.
Comment 6 Miloslav Metelka 2008-11-20 12:10:51 UTC
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.
Comment 7 Svata Dedic 2012-11-30 09:44:16 UTC

*** This bug has been marked as a duplicate of bug 222981 ***