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: | Lazy bean update | ||
---|---|---|---|
Product: | guibuilder | Reporter: | Chiana |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | yoyocar |
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Chiana
2014-01-11 14:18:35 UTC
Also, restarting the IDE will update the bean This is as designed, we don't try to reload GUI forms with custom beans when the bean classes change. The main reason is probably that we don't have a reliable mechanism for detecting that a class was changed, OTOH it is quite easy for the user to reload a form (Ctrl+Shift+R or Reload action on the root form node in Navigator) when not seeing the updated bean. It is also mentioned in help and tutorials. So I'd prefer to leave it on the user's responsibility as so far instead of introducing a potentially quirky auto-reload mechanism. But we can keep this idea as an enhancement request. But you CAN detect a source file been modified, there are time-stamps on the class-file, so if (classFileTimeStamp() > loadedClassFileTimeStamp()) reloadClass()... Also; if you have an embedded class open you can trap save action and reload that class. And finally; suggest a button on the toolbar in the editor window that says "Reload class", just having the action in the navigator window isn't enough. *** Bug 245056 has been marked as a duplicate of this bug. *** |