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 35161 - [java-mdr] Provide some simple API for monitoring status of parsing
Summary: [java-mdr] Provide some simple API for monitoring status of parsing
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks: 35162
  Show dependency tree
 
Reported: 2003-07-28 11:18 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2003-07-28 11:18:57 UTC
It is very hard to find out, if parser is still
scanning filesystems, or if MDR repository is
already initialized with up-to-date data.
API should be simple. For instance singleton class
ParserManager with methods

ParserManager getDefault()    //returns instance
of itself
Collection getTasks() //returns List of Tasks
waitParsingFinished() //waits till all scheduled
Tasks finish

and probably other methods like add/removeTask

This is just a first idea. If you have better one,
I will not object.
Comment 1 Jan Becicka 2003-07-30 09:49:52 UTC
Rising priority. This is necessary for testing.
Comment 2 Jan Becicka 2003-08-01 14:05:36 UTC
Or change implementation to start parsing synchronous with filesystems
mounting.
Comment 3 Martin Brehovsky 2003-08-01 14:32:49 UTC
Isn's the parsing process too much time consuming? I'm wondering what
could happen, if I (currently in non-projectized IDE) mount the whole
CVS repository, which even though it is not intended to be used for
compilation/execution/debugging, it is being mounted automatically as
to be used for these tasks, therefore I believe the parser would start
the parsing process which could last for several minutes at least.
What do you think?
Comment 4 Jan Becicka 2003-08-04 09:40:40 UTC
Your question is rather general. Yes, parsing process is time
consuming, but regardless of subject of this issue. Please file
another PERFORMANCE issue, if you want.
Comment 5 Tomas Hurka 2003-08-20 15:37:39 UTC
clazz and java modules was changed so that filesystems are scanned synchronously. 
This should solve your problem.