Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 19190 - [Bookmarks] Bookmarks do not update when file modified by external tool
Summary: [Bookmarks] Bookmarks do not update when file modified by external tool
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 397144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-04 15:49 EDT by Adam Schlegel CLA
Modified: 2013-01-03 05:36 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Schlegel CLA 2002-06-04 15:49:11 EDT
Bild F2

If a file has a bookmark defined for a particular line, then any modifications 
that take place in the workspace will update the position of the bookmark. If 
the file is modified outside of the workbench, the bookmark's position is not 
updated. Specifically, bookmarks defined on files that are modified by external 
tools are not updated.

For example:
1) Create a file with a few lines of text.
2) Add a bookmark to the first line of the file.
3) Close the editor for the file.
4) Insert a line of text at the start of the file from outside of the workspace.
5) Re-open the editor for the file.
6) Notice that the bookmark is still beside the first line of text in the file. 
If you click on the bookmark from the Bookmarks view, then the first n 
characters of the file are selected, where n is the number of characters that 
were originally on the first line of the file.
7) Contrast this to the behaviour when making the changes to the file in the 
workspace. The bookmark will follow the text of the first line, rather than the 
first characters in the file.
Comment 1 Nick Edgar CLA 2002-06-05 09:45:57 EDT
To do better would require some fairly advanced diffing, since we get no 
notification of the modification.
Comment 2 Tod Creasey CLA 2006-06-22 10:37:16 EDT
There are currently no plans to work on this
Comment 3 Dani Megert CLA 2013-01-03 05:36:08 EST
*** Bug 397144 has been marked as a duplicate of this bug. ***