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 216612 - Code highlighting does not work while find usages is in progress
Summary: Code highlighting does not work while find usages is in progress
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 14:45 UTC by Egor Ushakov
Modified: 2015-09-17 11:16 UTC (History)
2 users (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 Egor Ushakov 2012-08-09 14:45:38 UTC
Steps to reproduce:
- run long lasting find usages
- open first found occurrence
file opens in the editor but there is no highlighting (e.g. class fields - green) until Find Usages is finished
Comment 1 Tomas Zezula 2012-08-09 19:02:46 UTC
The Refactoring holds the model lock for the while time of find usages.
The IDE features cannot access the model.
Comment 2 Ralph Ruijs 2012-09-25 11:57:06 UTC
(In reply to comment #1)
> The Refactoring holds the model lock for the while time of find usages.
> The IDE features cannot access the model.

The only existing way I know is using JavaSource.runUserActionTask [1], which I think should not block other non-modifying tasks.

Should refactoring use a different api?

[1] http://wiki.netbeans.org/JavaHT_GetIntoJavacContext
Comment 3 Tomas Zezula 2012-09-25 12:13:10 UTC
No.
rUT is OK. But find usages does not need to be run as an atomic op.
Comment 4 Martin Balin 2015-09-17 11:16:22 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.