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 87557 - Refresh action should be automatic
Summary: Refresh action should be automatic
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: USABILITY
: 87700 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-19 18:05 UTC by _ gordonp
Modified: 2008-09-25 11:04 UTC (History)
0 users

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 _ gordonp 2006-10-19 18:05:01 UTC
There is a Refresh action in the Project tab which could (and should) be
automated. According to Thomas, its sole use is to track changes in generated
files (like lex.yy.c and y.tab.c) which are added to the project but may not
have been generated.
Comment 1 Thomas Preisler 2006-11-11 03:33:51 UTC
*** Issue 87700 has been marked as a duplicate of this issue. ***
Comment 2 Thomas Preisler 2007-06-26 00:23:18 UTC
See also http://cnd.netbeans.org/issues/show_bug.cgi?id=94935
Comment 3 Thomas Preisler 2007-10-08 02:17:20 UTC
Now tracking deletion of a files. If a file is being delete in the File view, Favorites view, or manually from disk, the
file is not removed from the project but automatically marked with a 'broken' badge. No manual refresh is needed
anymore. This fixes many usability problems.

But I see several problems with this behavior:
Generated source files (lex/yacc) should not be removed from the project when they are being deleted from disk. Other
files should. For instance when you update a source tree under version control, the deleted files should be removed from
the project. The project has no way of knowing which files should be automatically removed and which files shouldn't.
There is another problem with tracking the deleted files. Once a file has been deleted, it is marked with a 'broken'
badge by the project system, but there is no good way to track the deleted file (there is no DataObject and the folder
may be gone too) and remove the badge when the file is re-created. To solve these two problems I suggest the following:

Introduce a new property to a source file that tell the project system whether this file should be removed from the
project when the file is removed from disk. Default should be 'remove'. Introduce a 'refresh' thread that runs with a
low priority at certain time intervals and refreshes the logical folders.

Due to the complexity and risk of this approach and the introduction of a new property (after l10n freeze), it is
probably not going to happen in 6.0. It should be implemented in 6.x though. I will downgrade to p3 as the most common
usability problem has been fixed.
Comment 4 Thomas Preisler 2008-08-12 18:26:24 UTC
Please let me review the solution and the fix before it gets committed...
Comment 5 Alexey Vladykin 2008-09-24 18:16:54 UTC
Automatic refreshing of Projects tab after rebuild is implemented as part of the fix for IZ#147231.
Comment 6 Alexey Vladykin 2008-09-25 11:04:14 UTC
We agreed that fix for IZ#147231 fixes this IZ as well.