Summary: | Seeing non-java projects in package view | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | James_Moody | ||||
Version: | 2.0 | ||||||
Target Milestone: | 2.0 F3 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Philipe Mulet
2002-06-03 09:13:49 EDT
Created attachment 1173 [details]
Package view showing non-java project jdt-core-home
Closing / reopening fixed the problem... Cannot reproduce anymore... Looking at the implementation of DeltaProcessor, a delta can be issued when adding a new file onto a non-java project (non-java resource handling): - create project SimpleP (simple project) - add file 'titi.txt' Java Model[*]: {CHILDREN} SimpleP[*]: {CONTENT} ResourceDelta(/SimpleP/titi.txt)[+] Steps to reproduce original defect are actually: - create non-java project - add a zip file into it Package view now shows ALL non java projects ! More Steps (previous set is not enough to trigger UI refresh exposing bogus state). - create Java project JP - create simple project SP1 - add toto.txt file to SP1 - open package view (in cloned perspective), observe that only JP is visible - in resource perspective, close JP then reopen it - observe that package view now shows both JP and SP !? There are 2 defects: - non-java projects should never be added to the cache of Java projects - non-java resource deltas should never be computed for non-java projects Fixed, need a regression test. Double-checked change in DeltaProcessor. Added regression tests: JavaModelTests.testAddFileToNonJavaProject() and JavaElementDeltaTests.testAddFileToNonJavaProject(). Verified. *** Bug 19548 has been marked as a duplicate of this bug. *** Verified. |