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.
Product Version: NetBeans IDE Dev (Build 200707211200) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux version 2.6.5-1.358 running on i386 UTF-8; ja_JP (nb) Userdir: /space/ui18n pseudolocalized When using pseudolocalized build, the DTD language is selected by default in the Options->Editor->Code Templates when opening this panel for the first time. But the table of templates is empty and I got exception when clicking on any table cell. If I change the language all is loaded correctly (even with DTD). Maybe is important that DTD is due to localization the first item in the list of languages. java.lang.ClassCastException: org.netbeans.modules.options.codetemplates.CodeTemplatesPanel$3 at org.netbeans.modules.options.codetemplates.CodeTemplatesPanel.valueChanged(CodeTemplatesPanel.java:308) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:157)
Created attachment 45680 [details] full stacktrace
Is DTD first in the list?
Yes it is.
Created attachment 45770 [details] screenshot
Thanks and sorry for reassigning this back and forth.
Do some choices of languages show no templates defined ? (want to be sure that others such as this DTD situation I see with no templates do not have same problem) for those with templates - is sometimes the description section empty ? that happens in ja locale with pseudo localized; want to make sure its not unique to that. ken.frank@sun.com
let me know if these should be separate issue - 1. cannot resize the columns of the templates - Abbreviations, Expanded Text, Description usually such jtable columns can be resized by dragging in between columns in this case, it means that not all of some col names can be seen. in the macros tab, the cols can be resized 2. when the templates window first comes up, if not invoked before in this session, the col names do not come from pseudo localized bundles; but when choosing some other language choice, it does, and then it keeps showing from pseudo localized. I've not seen this happen before in other parts of ide. ken.frank@sun.com
Yes, Ken, please add them as separate issues. Thanks.
is DTD empty when in en locale ? if not, but happens only in other locale, then it seens this is p2 kind of issue, whether exception or not ? even if its empty on first invovation, but then after choosing other editor type and then back to DTD, where it then shows the template list, I think its issue that needs fixing. ken.frank@sun.com
I think this one has the same cause as issue #113227, but haven't actually check the fix. Please reopen if it still doesn't work. Thanks *** This issue has been marked as a duplicate of 113227 ***
verified duplicate