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 31141 - Cannot open Tools -> Options
Summary: Cannot open Tools -> Options
Status: CLOSED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Tree-Edit (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2003-02-17 10:50 UTC by Milan Kubec
Modified: 2007-09-25 06:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (1.76 KB, text/plain)
2003-02-17 10:53 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2003-02-17 10:50:52 UTC
I run IDE with flag
-J-Dorg.openide.util.NbBundle.DEBUG=true to see
what bundles and keys are used inside IDE, but
when I click Tools -> Options I got exception and
nothing is opened.
Comment 1 Milan Kubec 2003-02-17 10:53:13 UTC
Created attachment 8984 [details]
exc stack trace
Comment 2 pzajac 2003-02-17 11:51:02 UTC
reassigned to explorer
Comment 3 Milan Kubec 2003-02-17 13:28:20 UTC
This feature is esential for writing localizable tests.
Comment 4 Milan Kubec 2003-02-19 15:54:03 UTC
Raising prio because this feaute is really needed to find out what
bundles and keys are used for localized Strings. I cannot write
localized tests until it's fixed. Or is there any other way how to get
the information.
Comment 5 Marian Mirilovic 2003-02-26 13:05:43 UTC
Milan, I know it's annoying for us , but it isn't P2 in my opinion.
Lowering priority to P3.

Jirka: please look at it , thanks in advance.
Comment 6 Milan Kubec 2003-02-27 13:16:48 UTC
I've set it as P2 since I cannot write localized tests because of it.
Comment 7 Jiri Rechtacek 2003-02-27 14:41:13 UTC
The heart problem is in xml/tree-edit/TreeEditSettings. Some static
fields parse string from bundle to Integer. And because with DEBUG
switch are the strings from bundle appended with other information. It
makes the string unparseable to Int.
Petr, investigate any solution this problem.

java.lang.NumberFormatException: For input string: "3 (91:43)"
org.netbeans.modules.xml.tree.settings.TreeEditSettings.<clinit>(TreeEditSettings.java:43)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at
org.netbeans.modules.xml.tree.settings.TreeEditSettingsBeanInfo.class$(TreeEditSettingsBeanInfo.java:27)
	at
org.netbeans.modules.xml.tree.settings.TreeEditSettingsBeanInfo.<clinit>(TreeEditSettingsBeanInfo.java:33)
Comment 8 _ pkuzel 2003-02-27 15:55:29 UTC
It's the bundle value contract that it must be parseable Integer. It's
value used for branding not for localization.
Comment 9 Milan Kubec 2003-02-28 09:38:13 UTC
This issue really blocks writing localized tests (originaly it was
P2), without opening Tools -> Options I cannot see what is the bundle
and the key. Why is the target milestone set to future? Is it dificult
to fix it?
Comment 10 _ pkuzel 2003-02-28 10:40:47 UTC
Your test is too intrusive and breaks the code. I can label the key by
special comment i.e. #noi18n so you can avoid to mangle the value.
Comment 11 Milan Kubec 2003-02-28 10:52:40 UTC
It seems as misundestanding. I want to write tests which uses
localized Strings from bundles. I didn't write the module code so I do
not know the bundles and the keys. Therefore I run IDE with mentioned
switch to learn bundles and keys from number attached to each String
in IDE. Then I use those Bundles and keys in tests. Those tests then
runs on IDE without that switch. The switch is needed only to find out
bundles and keys. Tests itself doesn't break anything. I think that
the main problem is in handling of the switch.
Comment 12 Petr Jiricka 2004-05-04 16:57:59 UTC
The tree-edit module is not a part of the release any more. So can
this be resolved as WONTFIX?
Comment 13 Petr Jiricka 2004-07-23 16:50:45 UTC
Closing as WONTFIX per previous comment.
Comment 14 Milan Kubec 2005-07-07 12:36:39 UTC
v/c