Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362515

Summary: Resource#contains and #isConflicting should check if the other resource is stored in the same workspace
Product: [Eclipse Project] Platform Reporter: Szymon Ptaszkiewicz <sptaszkiewicz>
Component: ResourcesAssignee: Szymon Ptaszkiewicz <sptaszkiewicz>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen, Szymon.Brandys
Version: 3.7   
Target Milestone: 3.8 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Szymon Ptaszkiewicz CLA 2011-10-31 12:56:39 EDT
While working on bug 362227 it turned out that Resource#contains and Resource#isConflicting do not check if the other resource is stored in the same workspace. This not a problem at the moment, but in case we add multi-workspace support, two resources with the same path stored within different workspaces would be in conflict with each other.
Comment 1 Szymon Ptaszkiewicz CLA 2011-11-01 08:51:47 EDT
Created attachment 206263 [details]
Patch
Comment 2 Szymon Brandys CLA 2011-11-03 11:25:31 EDT
Makes sense. Could you also write a test for it?
Comment 3 Szymon Brandys CLA 2011-11-04 06:07:09 EDT
I assumed that the multi workspace work was merged into master. Check that the test pass and feel free to release the fix.
Comment 4 Szymon Ptaszkiewicz CLA 2011-11-04 07:44:07 EDT
Thanks! Fixed in master.