Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Local History
Local History [message #154529] Sun, 09 November 2003 07:27 Go to next message
Eclipse UserFriend
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 #154921 is a reply to message #154529] Mon, 10 November 2003 16:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

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

Re: Local History [message #155068 is a reply to message #154921] Mon, 10 November 2003 23:01 Go to previous messageGo to next message
Chris Laffra is currently offline Chris LaffraFriend
Messages: 253
Registered: July 2009
Senior Member
Well, what happens when you are running on a "versioning file system"?

http://www.google.com/search?q=versioning+file+system

Chris

"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
> 
>
Re: Local History [message #155151 is a reply to message #155068] Tue, 11 November 2003 00:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

In that case local history would be pushed down to the O/S (saving us
the trouble of having to implement this ugly stuff ourselves). These
things have been around for decades but it's amazing they haven't caught
on again now that disks are so cheap...
--

Chris Laffra wrote:
> Well, what happens when you are running on a "versioning file system"?
>
> http://www.google.com/search?q=versioning+file+system
>
Re: Local History [message #155180 is a reply to message #154921] Tue, 11 November 2003 03:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: timheier.yahoo.com

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
> 
>
Re: Local History [message #156067 is a reply to message #155180] Wed, 12 November 2003 22:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

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
>>
>>
>
>
>
Re: Local History [message #157455 is a reply to message #156067] Sun, 16 November 2003 13:41 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
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
>>> 
>>>
>>
>>
>>
>
Re: Local History [message #157471 is a reply to message #157455] Sun, 16 November 2003 15:34 Go to previous message
Eclipse UserFriend
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
> >>> 
> >>>
> >>
> >>
> >>
> >
Previous Topic:Source drop build problem? Completing Install splash always on (R-2.1.2-200311030802)
Next Topic:Replace Three Grey Bars with Nice Image (Wizard)?
Goto Forum:
  


Current Time: Sat Jul 27 19:22:10 GMT 2024

Powered by FUDForum. Page generated in 0.04101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top