Bug 23984 - validateEdit not called when changing .classpath
Summary: validateEdit not called when changing .classpath
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-23 13:18 EDT by Josh Heidebrecht CLA
Modified: 2002-11-28 16:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Heidebrecht CLA 2002-09-23 13:18:21 EDT
The .classpath is under source control and is checked in. From the 'Java Build 
Path' properties dialog for the project I am trying to change a classpath 
variable name from XXX to YYY. When I complete the change and choose Ok I 
receive and error stating that the file could not be checked out.

I have validateEdit processing turned on, but the SCM provider is set to ignore 
validateSave requests.
Comment 1 Philipe Mulet CLA 2002-09-26 09:50:11 EDT
That clearly would break all tooling expecting to modify resources with using 
editor interaction (validateEdit is meant to be used by editors).

Pretty much all programmatical change to a resource would run into the same 
issue.

The SCM provider settings seems to imply that the behavior you are observing is 
the right one. Only files which you deliberately edited are to be checked out.
Comment 2 Philipe Mulet CLA 2002-09-30 04:57:27 EDT
It appears that we would need to be calling #validateEdit on each resource 
modified in a headless way, like in your scenario.

Planned for fix for 2.1M2
Comment 3 Philipe Mulet CLA 2002-10-14 05:51:18 EDT
Deferred to M3.
Comment 4 Philipe Mulet CLA 2002-10-28 10:41:13 EST
Fixed (in JavaProject#setSharedProperty).
Comment 5 David Audel CLA 2002-11-15 06:56:26 EST
Verified.
Comment 6 David Audel CLA 2002-11-15 08:58:54 EST
I marked this bug as verified by error.
Comment 7 David Audel CLA 2002-11-15 08:59:36 EST
Marked as resolved.
Comment 8 David Audel CLA 2002-11-15 09:12:50 EST
The fix is released but i can not verify if the fix work.

Josh - could you verify if the bug is corrected in the last integration build.
Comment 9 Josh Heidebrecht CLA 2002-11-28 16:41:52 EST
Working in M3.

fyi
You can use the pessimistic provider (see the Team team) to emulate a ClearCase
like SCM.