Problem with refresh [message #418576] |
Sun, 20 April 2008 14:01 |
Eclipse User |
|
|
|
Originally posted by: hkumar.agrawal.gmail.com
Hi,
Apologies upfront for posting this is this forum too. I have not had much luck in the platform forum. Please excuse me.
My original thread is:
http://www.javalobby.org/thread.jspa?threadID=109071
Essentially the problem is that refresh on a resource is not working - think there is a functionality of a 'fastRefresh' and its not picking up file modifications done from outside workbench.
Any help/pointers are appreciated.
Thanks
Hemant
|
|
|
|
Re: Problem with refresh [message #418588 is a reply to message #418577] |
Mon, 21 April 2008 13:58 |
Eclipse User |
|
|
|
Originally posted by: hkumar.agrawal.gmail.com
Hi,
I am dead sure that I am working on the same resource and that the same is surely getting updated on the filesystem. The weird thing is that if I debug (put just 1 breakpoint) and when that breakpoint hits just run, the problem goes away. So perhaps, the refresh happens or something.
As a nasty workaround for the problem, I created another resource by a unique name every time, copied the contents to this new file using java.util File api. And now everything works fine.
-Hemant
|
|
|
Re: Problem with refresh [message #418589 is a reply to message #418588] |
Mon, 21 April 2008 14:08 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Hemant,
Your comments imply that there might be underlying issues like OS delays
in actually flushing the saved contents to the physical disk. Just as
you appear to be sure that the file really is updated, I'm very sure
that if Eclipse is reading old contents it's pulling them out of the
actual file from the disk and not from somewhere else...
Hemant wrote:
> Hi,
>
> I am dead sure that I am working on the same resource and that the same is surely getting updated on the filesystem. The weird thing is that if I debug (put just 1 breakpoint) and when that breakpoint hits just run, the problem goes away. So perhaps, the refresh happens or something.
>
> As a nasty workaround for the problem, I created another resource by a unique name every time, copied the contents to this new file using java.util File api. And now everything works fine.
>
> -Hemant
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03875 seconds