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.

Bug 153218 - Added nodes did not show - refresh needed
Summary: Added nodes did not show - refresh needed
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords: RANDOM, THREAD
Depends on:
Blocks:
 
Reported: 2008-11-14 12:10 UTC by Tomas Danek
Modified: 2009-02-19 22:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-11-14 12:10:06 UTC
Product Version: NetBeans IDE Dev (Build 200811140201)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\Tomas\.netbeans\dev
---------------
- Tools|Templates
- created new folder on top level
- selected that folder - invoked "add..", and added multiple times some files
- it happens after a while that when a template is added, it's node does not appear. Some kind of random, but after a
while playing with this can be reproduced.
Comment 1 t_h 2008-11-15 09:07:23 UTC
TemplateFilter.acceptTemplate() sometimes returns false for newly created template -> no node is created by FolderChildren
Comment 2 Jiri Rechtacek 2008-11-21 15:24:45 UTC
It depends on DataObject.getPrimaryFile().getAttribute("simple"), it means that attribute wrongly return false. Any race
condition problem?
Comment 3 Jiri Skrivanek 2008-12-15 13:07:22 UTC
It is reproducible only by context menu. The problem is that AddAction is called outside of the AWT thread and nodes can
be refreshed before the template attribute of newly added template is set.

2fa1de1554a7
Comment 4 Quality Engineering 2008-12-16 05:56:23 UTC
Integrated into 'main-golden', will be available in build *200812160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2fa1de1554a7
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #153218 - AddAction must be called from AWT thread.
Comment 5 Tomas Danek 2008-12-23 12:05:06 UTC
unable to reproduce in 20081223 -> v