Reputation: 3284
I am opening and editing a file (in my Eclipse plugin), in the filesystem by using java.io.File
. But everytime i edit it, the Eclipse is out of sync with that resource! So after my code edits it, if user tries to operate on it in the UI, Eclipse says resource out of sync! I know refreshing the file in UI will work but everytime doing that will be annoying!
Is there any way to open the resource in such a way that eclipse is in sync with the file?
refreshLocal API is not useful for me!!
Upvotes: 0
Views: 570
Reputation: 111162
Try Preferences > General > Workspace
and select the Refresh using native hooks or polling
check box.
Upvotes: 1
Reputation: 61558
The Filesync plugin worked fine for me. It is configurable. No manual refreshing needed.
Upvotes: 0