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: | Make it possible to call CloneableEditorSupport.getOpenedPanes() from any thread | ||
---|---|---|---|
Product: | platform | Reporter: | Alexander Zgursky <zgursky> |
Component: | Text | Assignee: | issues@editor <issues> |
Status: | STARTED --- | ||
Severity: | blocker | CC: | ads |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Alexander Zgursky
2007-04-21 20:56:06 UTC
It really needs to be performing in AWT - it may need to call into WinSys, which (obviously) asserts the same way. Anyway, it returns a JComponent, what would you do with it out of AWT thread? Reassigning to new module owner mslama. Yes it touches Swing components so it would be dangerous to call it from another thread. Fix is to to update javadoc of EditorCookie. Using invokeAndWait is dangerous. Returned editor panes can be already in AWT hierarchy so working with them out of AWT thread might result in unpredictable result. Swing is not thread safe. In addition edito pane can be in opened state but its UI might not yet be created. |