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 189160 - Template Categories add [] to the value, hiding the template
Summary: Template Categories add [] to the value, hiding the template
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 192234 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-08-03 12:23 UTC by talreg
Modified: 2011-10-24 12:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fix (1.66 KB, patch)
2010-09-03 16:00 UTC, esminis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description talreg 2010-08-03 12:23:02 UTC
when going to the template manager, and right click on a file and selecting properties, if you put anything in this field, it will be automatically prefix with [ and post fix with ]. this will hide this file from usage... 
e.g.
if you add a new php template, or even point to an existing one in the PHP section (I used the PHP file) then right click and go to properties and then just click inside the template categories field, the value will be surrounded with [], so PHP will became [PHP]. after this is done, there is no turning back; if you select close, the [] will be added anyhow. now, if you are going to File->New file and go to PHP, This file is no longer available!
Comment 1 esminis 2010-09-03 16:00:33 UTC
Created attachment 101859 [details]
Fix

Really it is not PHP bug, it is netbeans template manager bug
Comment 2 Tomas Mysik 2011-06-03 10:19:28 UTC
Batch reassigning.
Comment 3 Tomas Mysik 2011-06-10 10:02:18 UTC
Assigning to the proper component.

Please, evaluate and review the attached patch and apply it if it is correct. Thanks.
Comment 4 Martin Entlicher 2011-06-10 14:11:22 UTC
It's strange to adjust this in getValue(), it's much better to remove the brackets in setValue() where they are added.
Comment 5 Martin Entlicher 2011-06-16 00:18:45 UTC
Fixed by changeset:   195890:2aa820809a01
http://hg.netbeans.org/main/rev/2aa820809a01

Merged into release701 as changeset:   201055:7c977f5057f6
Comment 6 Quality Engineering 2011-06-16 19:57:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/2aa820809a01
User: mentlicher@netbeans.org
Log: #189160 Remove the brackets generated by List.toString().
Comment 7 Quality Engineering 2011-06-17 04:51:59 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/7c977f5057f6
User: mentlicher@netbeans.org
Log: #189160 Remove the brackets generated by List.toString().
(transplanted from 2aa820809a01194a3a852fd085bc115862508231)
Comment 8 Antonin Nebuzelsky 2011-10-24 12:26:05 UTC
*** Bug 192234 has been marked as a duplicate of this bug. ***