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: | Custom property editors are not initialized properly. | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Pavel Flaska <pflaska> |
Component: | Code | Assignee: | Tomas Pavek <tpavek> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jchalupa |
Priority: | P2 | ||
Version: | -FFJ- | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Pavel Flaska
2002-03-21 09:43:35 UTC
Proposed fix (quite simple, only one file affected): diff -r1.40 FormCustomEditor.java 24a25,26 > import org.openide.explorer.propertysheet.PropertyEnv; > import org.openide.explorer.propertysheet.ExPropertyEditor; 105a108 > PropertyEnv env = editor.getPropertyEnv(); 110a114,115 > if (env != null && prEd instanceof ExPropertyEditor) > ((ExPropertyEditor)prEd).attachEnv(env); All property editors are initialized with PropertyEnv explicitly each time before their custom editors are used. This initialization can be redundant in some cases, but is quite safe. Similar fix have been already integrated in dev trunk. Tested by QA. Fix applied. Build 020401 Verified Resolved for 3.3.x or earlier, no new info since then -> closing. |