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.
Summary: | matisse - I18N of name properties should be configurable | ||
---|---|---|---|
Product: | guibuilder | Reporter: | arittner <arittner> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | blocker | Keywords: | I18N |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
arittner
2006-08-24 10:20:49 UTC
You can check "Do not internationalize this string" in the property editor. But you perhaps want to be able to specify that certain properties should not be internationalized by default. Maybe we could at least hardcode this behavior for the 'name' property of visual components. Hello Tomas! Thank your for your hint. Well, I create "big" data-aware forms with many input fields. The connection between the DB and the input fields is the literal in the "name" property. It's very time consuming to change any component property to "Do not internationalize this string". I mark all input field and click on the (...) button from the name property and get a NPE: java.lang.NullPointerException at org.netbeans.beaninfo.editors.StringCustomEditor.<init>(StringCustomEditor.java:61) at org.netbeans.beaninfo.editors.StringEditor.getCustomEditor(StringEditor.java:68) at org.netbeans.modules.form.FormCustomEditor.<init>(FormCustomEditor.java:170) at org.netbeans.modules.form.FormPropertyEditor.getCustomEditor(FormPropertyEditor.java:260) at org.openide.explorer.propertysheet.PropUtils$DifferentValuesEditor.getCustomEditor(PropUtils.java:1688) at org.openide.explorer.propertysheet.PropertyDialogManager.<init>(PropertyDialogManager.java:112) at org.openide.explorer.propertysheet.CustomEditorAction.actionPerformed(CustomEditorAction.java:194) at org.openide.explorer.propertysheet.SheetTable.editCellAt(SheetTable.java:963) at javax.swing.plaf.basic.BasicTableUI$Handler.adjustFocusAndSelection(BasicTableUI.java:953) at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:920) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221) at java.awt.Component.processMouseEvent(Component.java:5485) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:696) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3803) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) So it's impossible to change all name-property "Do not internationalize this string"-Checkboxes in a fly. I need to change any singe component property. Hardcoding is IMHO a possible solution, but it should be configuarable in the Tools/Options. Thank you and best regards, josh. I use NB 6.0 M2 with jdk 1.4.2 and swing-layout 1.0.1 Yes, you can only set "Do not internationalize this string" one by one. Regardless the exception, you can't multi-select more components because each has a different name I guess. With multi-selection you set the same value to all the properties. As for the exception, could file a separate issue for it? Thanks. |