Home » Eclipse Projects » Target Management » locally updated image file not updated on remote site
locally updated image file not updated on remote site [message #989163] |
Tue, 04 December 2012 22:56  |
Robert Lewis Messages: 3 Registered: December 2012 |
Junior Member |
|
|
Hello Everyone,
First of all, let me be honest, I'm a relatively new user of Eclipse and RSE.
I have run into an issue where an image file is opened by double clicking on the file in RSE, edited using paint or some other image editor, and then saved. However, the file on the remote site does not get updated with the edited local copy.
Double clicking the image file again, opens up the local version from the workspace temp files. Even after a restart of eclipse, or a disconnect and reconnect of the remote system.
I can however, drag the file from the temp workspace, drop it onto the remote folder, and be prompted to overwrite the existing file, which works as expected. The file on the remote site is overwritten. As well, I can rename, copy and delete files without issue, so I don't think its a permission problem.
Is there something that I am missing, that will automatically update the remote file?
Using latest Eclipse Juno 4.2.1, RSE runtime 3.4.1.201209191030-7L7IFBY83omx__z0RFpKdWB-r5MS, connecting to a Ubuntu 12.04 webserver, using SSH.
|
|
|
Re: locally updated image file not updated on remote site [message #989176 is a reply to message #989163] |
Wed, 05 December 2012 01:07   |
Eric Rizzo Messages: 3070 Registered: July 2009 |
Senior Member |
|
|
Robert Lewis wrote on Tue, 04 December 2012 17:56Hello Everyone,
First of all, let me be honest, I'm a relatively new user of Eclipse and RSE.
I have run into an issue where an image file is opened by double clicking on the file in RSE, edited using paint or some other image editor, and then saved. However, the file on the remote site does not get updated with the edited local copy.
Double clicking the image file again, opens up the local version from the workspace temp files. Even after a restart of eclipse, or a disconnect and reconnect of the remote system.
I can however, drag the file from the temp workspace, drop it onto the remote folder, and be prompted to overwrite the existing file, which works as expected. The file on the remote site is overwritten. As well, I can rename, copy and delete files without issue, so I don't think its a permission problem.
Is there something that I am missing, that will automatically update the remote file?
Using latest Eclipse Juno 4.2.1, RSE runtime 3.4.1.201209191030-7L7IFBY83omx__z0RFpKdWB-r5MS, connecting to a Ubuntu 12.04 webserver, using SSH.
I'm no RSE expert (barely used it, in fact), but I can offer some educated speculation about what's happening.
Eclipse maintains its own representation of file system resources (the Resources API); in general, file changes that are done by external processes are not automatically detected by Eclipse. Now, bearing in mind the fact that RSE is (most likely) relying on notifications from Eclipse's internal resources API in order to push files to the remote system, it might just be that Eclipse (and hence, RSE) is not aware that the file has been touched.
To test this theory, try right-click on the file or it's containing folder in Eclipse, and select Refresh. If y theory is correct, that will trigger Eclipse's Resources infrastructure to see that the file has been changed and therefore notify RSE, which will then push the file to the remote system.
If this does indeed prove to be correct, you can just manually do the Refresh on folders/files after you've modified them in an external app. Alternatively, there is a Preferences setting that will force Eclipse to monitor file system changes constantly; you can find it under Preferences > General > Workspace > Refresh Using Native Hooks.
|
|
| | | | |
Goto Forum:
Current Time: Thu Dec 07 21:37:03 GMT 2023
Powered by FUDForum. Page generated in 0.01805 seconds
|