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 125979 - PrintPreviewAction blocks event queue for several seconds
Summary: PrintPreviewAction blocks event queue for several seconds
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Print (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 08:18 UTC by Jiri Skrivanek
Modified: 2008-02-06 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (24.06 KB, text/plain)
2008-01-25 08:19 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2008-01-25 08:18:58 UTC
After changes below were integrated IDE is freezed for tens of seconds when PrintPreviewAction is doing something in AWT
thread. It broke the commit validation suite since build #5388. To reproduce:

- create java project
- wait until scanning is finished
- select project node in the Projects view
- click the File main menu item and IDE is freezed for several seconds (see attached thread dump).


yaroslavskiy:

[Issue 120853] Print Project Action
[The file was modified] 	1.7	print/src/org/netbeans/modules/print/impl/action/PrintPreviewAction.java
[The file was modified] 	1.19	print/src/org/netbeans/modules/print/impl/ui/Preview.java
[The file was modified] 	1.4	print/src/org/netbeans/modules/print/impl/util/UI.java
Comment 1 Jiri Skrivanek 2008-01-25 08:19:22 UTC
Created attachment 55552 [details]
Thread dump.
Comment 2 Vladimir Yaroslavskiy 2008-01-25 08:56:04 UTC
fixed:

cvs commit -m"[Issue 125979] PrintPreviewAction blocks event queue for several seconds"
Checking in impl/action/PrintPreviewAction.java;
/cvs/print/src/org/netbeans/modules/print/impl/action/PrintPreviewAction.java,v  <--  PrintPreviewAction.java
new revision: 1.8; previous revision: 1.7

don't get children subnodes of selected nodes recursively.
Comment 3 Vladimir Yaroslavskiy 2008-01-25 08:56:39 UTC
build #5400 should have changes and pass.
Comment 4 Jiri Skrivanek 2008-02-06 13:44:11 UTC
Verified.