Bug 43208 - ICompilation.move not supported when in workingCopyMode
Summary: ICompilation.move not supported when in workingCopyMode
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 06:29 EDT by Martin Aeschlimann CLA
Modified: 2003-10-14 11:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Aeschlimann CLA 2003-09-17 06:29:35 EDT
20030917

In MultiMoveTest, several tests fail when we switch to the new primary working
copy mode (toggle JavaPlugin.USE_WORKING_COPY_OWNERS to do that).

The problem is that CopyResourceElementsOperation tests for ((ICompilationUnit)
element).isWorkingCopy()) (line 675).

It probably should do the extra check if this isn't the primary CU.

There is a confusion between
isWorkingCopy (is a sandbox working copy, not the primary)
and
isWorkingCopyMode (a primary CU, but currently in working copy mode)
Comment 1 Jerome Lanneluc CLA 2003-09-25 12:34:50 EDT
Fixed by also checking if the cu is not a primary working copy before rejecting 
the operation.
Comment 2 David Audel CLA 2003-10-14 11:32:28 EDT
Verified.