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.
Open Tools -> Templates. For some templates the "Open in Editor" button is disabled. Examples: C -> C Source File, C++ -> C++ Source File, Fortran -> Empty Fortran File, several entries under C/C++ Tests.
org.netbeans.modules.favorites.templates.TemplatesAction uses wrnog assumption about "editable" template. It check in the method propertyChange(): ----------- FileObject fo = dobj.getPrimaryFile (); File f = FileUtil.toFile (fo); res = f != null || fo.getSize () > 0; ----------- As result empty template cannot be edit (see also Bug #152388). I do not know why TemplatesAction use such logic. I prefer to fix CND templates by adding new line symbol. By the way a good practice to have a new line symbol at the end of file in the C/C++ files. Fixed, change sets: http://hg.netbeans.org/cnd-main/rev/58f9a0dd0fbc http://hg.netbeans.org/cnd-main/rev/946bc3752714
Integrated into 'main-golden', will be available in build *201010290000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/58f9a0dd0fbc User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #188578 some C/C++/Fortran templates are not editable