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 110962 - I18N - Empty table of code templates
Summary: I18N - Empty table of code templates
Status: VERIFIED DUPLICATE of bug 113227
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on: 113227
Blocks:
  Show dependency tree
 
Reported: 2007-07-25 15:37 UTC by Jiri Prox
Modified: 2008-05-28 08:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stacktrace (1.97 KB, text/plain)
2007-07-25 15:39 UTC, Jiri Prox
Details
screenshot (44.08 KB, image/png)
2007-07-26 13:40 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2007-07-25 15:37:27 UTC
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)
Comment 1 Jiri Prox 2007-07-25 15:39:37 UTC
Created attachment 45680 [details]
full stacktrace
Comment 2 Vitezslav Stejskal 2007-07-26 13:33:44 UTC
Is DTD first in the list?
Comment 3 Jiri Prox 2007-07-26 13:39:43 UTC
Yes it is. 
Comment 4 Jiri Prox 2007-07-26 13:40:21 UTC
Created attachment 45770 [details]
screenshot
Comment 5 Vitezslav Stejskal 2007-07-26 16:14:57 UTC
Thanks and sorry for reassigning this back and forth.
Comment 6 Ken Frank 2007-08-19 18:27:41 UTC
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

Comment 7 Ken Frank 2007-08-19 18:34:18 UTC
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
Comment 8 Vitezslav Stejskal 2007-08-20 13:22:23 UTC
Yes, Ken, please add them as separate issues. Thanks.
Comment 9 Ken Frank 2007-10-03 19:31:55 UTC
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
Comment 10 Vitezslav Stejskal 2007-10-08 16:46:34 UTC
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 ***
Comment 11 Jiri Prox 2008-05-28 08:51:32 UTC
verified duplicate