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 27347 - Update code completion database for externally modified files
Summary: Update code completion database for externally modified files
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-16 13:12 UTC by aaime
Modified: 2004-11-16 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aaime 2002-09-16 13:12:39 UTC
The user guide says that this is possible
only my manually issuing and "Update code
completions..."
command. This is a problem with files generated
by tools like xdoclet. XDoclet allows me to
automatically generate home, remote, local and
localHome
interfaces and deployement descriptor from the
implementation of an EJB, thus greatly reducing
redundant coding. The
problem bites me when I add a method in the interface:
the remote interface is generated outside netbeans, 
the code completion database is not updated and thus
coding the client I cannot see the completion for the
new method. I have to request for a manual update.
Would
it be possible to have netbeans watch for modified
files
or at least add an ant task which requests netbeans
to update the database, so that this activity could
be made part of the build?
Comment 1 aaime 2002-09-16 14:48:12 UTC
Btw, I'm not an expert but it should be possible
to receive events about file system modifications
somehow... how does jboss detect changes in the
deploy folder instantly otherwise, I don't think
it uses polling since the CPU use normally is 0.
Comment 2 psuk 2004-03-23 19:15:36 UTC
Changing subcomponent to "code completion"

Comment 3 Martin Roskanin 2004-11-15 10:17:20 UTC
Parser databases were replaced by MDR. I am not sure, whether MDR is
capable to update their databases after external modifications, thus
reassigning to mdr for further comments.
Comment 4 Martin Matula 2004-11-16 11:36:00 UTC
The MDR catches all the file changes that filesystem notice and
updates the data for code completion. So, this should work in NB4.0.