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 40845 - Deleting $projdir/test/ in Files does not remove entry from Projects: SourcesHelper must fire changes
Summary: Deleting $projdir/test/ in Files does not remove entry from Projects: Sources...
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-03-09 09:17 UTC by Milan Kubec
Modified: 2006-03-24 10:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack trace (12.60 KB, text/plain)
2004-03-09 09:17 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-03-09 09:17:13 UTC
[buildsys-starter-kit-040302, JDK 1.4.2_03]

Tests folder in locial view is not removed if user
deletes test folder in Files tab. Attached
exceptions are thrown then when working with Tests
node.
Comment 1 Milan Kubec 2004-03-09 09:17:49 UTC
Created attachment 13887 [details]
exc stack trace
Comment 2 Jesse Glick 2004-03-19 14:49:33 UTC
Logical view needs to listen for this.
Comment 3 Jesse Glick 2004-05-01 02:44:25 UTC
Please reevaluate after package view rewrite.
Comment 4 Petr Hrebejk 2004-05-03 13:26:04 UTC
Who should reevaluate. If someone else than me please don't. The issue
is still valid. Package view rewrite only affects Package root's children.
Comment 5 Jesse Glick 2004-05-03 17:43:53 UTC
Sorry, didn't realize you meant deleting the *entire* test folder.
That has to be listened to by the logical view (maybe dep on issue
#33162).
Comment 6 Petr Hrebejk 2004-06-03 14:23:58 UTC
Changed the logical view to work with Sources/SourceGroups and to listen
on the Sources for changes. Once Sources (SourcesHelper) starts firing
events this should be fixed.
Comment 7 Jesse Glick 2004-07-30 21:59:05 UTC
Have patch & unit test; and it does in fact work in j2seproject's: you
can add or delete the test folder in Files and the Projects tab will
be updated correspondingly.
Comment 8 Jesse Glick 2004-07-30 23:35:10 UTC
committed   * Up-To-Date  1.3        
ant/freeform/src/org/netbeans/modules/ant/freeform/FreeformSources.java
committed   * Up-To-Date  1.7        
ant/project/src/org/netbeans/spi/project/support/ant/SourcesHelper.java
committed   * Up-To-Date  1.5        
ant/project/test/unit/src/org/netbeans/spi/project/support/ant/SourcesHelperTest.java
Comment 9 Milan Kubec 2004-08-20 12:53:36 UTC
Verified in custom 20040820.