Community
Participate
Working Groups
For text type files, editing the remote file in either the Eclipse internal default editor or the system editor should become possible. In order to do this: - A local copy of the remote file is required. The relative directory structure should be honored to allow editing of files with the same name from different directories in parallel without conflicts. - The modification time and a MD5 checksum should be stored for the file at the time the local snapshot is taken. This information are used to detect concurrent editing of the file. - Need a user preference to configure auto sync vs. manual sync of the modified file. * Auto sync == Local version will be copied back to the remote file system on save * Manual sync == User has to press a "Submit" or "Sync" button on top of the editor - For manual sync, a decorator is needed to signal the user that local and remote file copies are not in sync. The decorator should be clear enough to tell which side is newer. - If concurrent modification is detected, the user should decide what to do. Nice to have: Offer a merge between the local modified and remote modified version Difficulty: Encoding differences between local host and remote target.
Created attachment 204244 [details] Design Proposal for concurrent modification in Target Explorer. This is the design document for the concurrent modification problem in Target Explorer. Please have a review.
Created attachment 204245 [details] The patch to fix this bug. This is a patch to fix the bug. Please have a review.
I, William Chen, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer to make this contribution under the EPL.
Hi Uwe, Here's the patch for this bug and a design proposal on how the concurrent modification in Target Explorer is handled in this patch. Please have a review. Thanks! -William
Committed patch to HEAD
https://git.eclipse.org/c/tcf/org.eclipse.tcf.git/commit/?h=0.6.0&id=aa381a6baa9a13213b3b3dcac74c0a2f021c5d63