Bug 2360 - DCR - Callbacks to notice file changes
Summary: DCR - Callbacks to notice file changes
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2001-10-10 22:34 EDT by Kevin Haaland CLA
Modified: 2004-03-25 16:11 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Haaland CLA 2001-10-10 22:34:52 EDT
Open a *.java file.
	Open it with notepad.
	Change it in the notepad and save.
	Go back to the eclipse workbench.
		1st problem:
			If the editor was activated when notepad was opened 
			you do not get the "File was changed in the file system..... " message until you deactivate and
			re-activate the editor.
	Activate the editor
	- The message dialog will open asking if you want to load the changes made in the file system.
	Say no.
		
	2nd problem:
		The text should be marked as dirty since it is not the same as the one save in the file system.	

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 18:22:52 EST
PRODUCT VERSION:
	Build 118 - jdk - winNT

Comment 2 Kevin Haaland CLA 2002-01-21 21:56:45 EST
Moving to Core for comment on the first item (not noticing file changes). 

Comment 3 DJ Houghton CLA 2002-01-24 17:34:50 EST
As far as I can tell from the scenerio below once the file has been opened 
initially in the editor, the filesystem is not consulted until the editor is re-
activated. At that point in time we do notice a change in the file on the 
filesystem and report that problem.

Callbacks from the filesystem are not supported so we cannot agressively report 
filesystem changes to the user. 

Moving to Platform/UI for comment/closure on 2nd problem.
Comment 4 Kevin Haaland CLA 2002-01-24 19:11:22 EST
UI would need to have Core callback to detect the file is out of sync. Please 
put this defect report in your "Resolve Later" category. It's not a UI problem. 
Comment 5 DJ Houghton CLA 2002-01-24 19:28:39 EST
Filesystem callbacks are not part of the 2.0 plan.

Moving to Resolved/LATER.
Comment 6 DJ Houghton CLA 2004-03-25 16:08:26 EST
Re-opening to close.
Comment 7 DJ Houghton CLA 2004-03-25 16:11:06 EST
We have integrated the optional auto-refresh plug-in into the Eclipse SDK and it
is now a part of the regular downloads.

As of the M8 build it can be configured via:
  Window -> Preferences -> Workbench -> Work in Progress

The win32 implementation uses file-system callbacks for notification. The linux
implementation uses FAM. All other platforms use a polling mechanism.

Marking as FIXED.