Local History [message #154529] |
Sun, 09 November 2003 02:27  |
Eclipse User |
|
|
|
Originally posted by: timheier.yahoo.com
Is there a way that the Local History can be configured to keep track of
changes to Java files that happen outside of Eclipse?
For example, I sometimes edit Java files outside of Eclipse in a text editor
and it would be nice if the local history would recognize those as external
changes. It only seems to keep track of changes made in Eclipse.
Thanks.
|
|
|
|
|
|
|
|
|
Re: Local History [message #157471 is a reply to message #157455] |
Sun, 16 November 2003 10:34  |
Eclipse User |
|
|
|
Originally posted by: dj_houghton.nospam.ca.ibm.com
What John is saying is that currently the workspace doesn't hold the
"current" file contents in the local history. The local history is only
populated after changes are made in the workspace. This was a conscious
design decision.
Sequence of events:
- IFile.create() is called and contents have state A. (local history is
empty)
- IFile.setContents() is called with state B. State A is moved to local
history (pending flags and history store rules) and then the file's contents
are set on disk. (local history has one entry, state A)
We do not agressively add files to the local history when files are first
created. Consider the performance hits this behaviour would introduce. (some
people's workspaces have upwards to 100,000 resources...)
Additional comments can be found in bug 10589.
"Johan Compagner" <jcompagner@j-com.nl> wrote in message
news:bp7ume$jet$1@eclipse.org...
> Doesn't have te be this way..
>
> Just store always the new version.. at the moment you see that it is
changed/saved.
>
> johan
>
>
> John Arthorne wrote:
> > Detecting that a change has occurred is not difficult. However, it
> > would need to be notified *before* the change occurred so it could store
> > the old copy in the local history. If it gets notified after the
> > change, it can no longer figure out what the file contents used to be
> > before the change, unless it caches a copy of all files in the workspace
> > elsewhere.
> > --
> >
> > Tim wrote:
> >
> >> Eclipse could detect that a file was modified outside the workbench
> >> the next
> >> time it starts (comparing date/time?). Then in the local history
> >> view, the
> >> modifications would show up as "external" for example instead of having
a
> >> date/time. I have noticed that at least one other IDE has this feature
> >> and
> >> it's very, very helpful.
> >>
> >> "Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
> >> news:booee1$2p9$2@eclipse.org...
> >>
> >>> No. How would it know? Files can be changed at any time without
> >>> notification, so there would be know way to get the "old" version into
a
> >>> history. Change within Eclipse has hooks so they can get the history
> >>> before the file changes.
> >>>
> >>>
> >>> --
> >>> Thanks, Rich Kulp
> >>>
> >>>
> >>
> >>
> >>
> >
|
|
|
Powered by
FUDForum. Page generated in 0.05687 seconds