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: | ProjectTab.restoreTreeView() manipulates Swing components from RP thread | ||
---|---|---|---|
Product: | projects | Reporter: | _ tboudreau <tboudreau> |
Component: | Generic Projects UI | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hmichel |
Priority: | P2 | Keywords: | RANDOM, THREAD |
Version: | 6.x | ||
Hardware: | Macintosh (x86) | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 182695 |
Description
_ tboudreau
2010-03-24 17:10:36 UTC
Surely not a P1, or there would have been other complaints long ago. core-main #306ab7682e60 Integrated into 'main-golden', will be available in build *201003250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/306ab7682e60 User: Jesse Glick <jglick@netbeans.org> Log: #182697: manipulate AWT components on EQ only. *** Bug 181056 has been marked as a duplicate of this bug. *** Don't you want this line + final boolean someProjectsOpen = OpenProjects.getDefault().getOpenProjects().length > 0; + Mutex.EVENT.readAccess(new Runnable() { + public @Override void run() { to be here? + if (someProjectsOpen) { + restoreTreeView(); + } else { + showNoProjectsLabel(); + } + } + }); It's at least theoretically possible the value can change before the Runnable executes. (In reply to comment #5) > the value can change before the Runnable executes. It could, in which case I should get a new event and it should repaint. Just preferred to do the calculation outside EQ; not sure if it matters. |