| Renaming resource file [message #297235] |
Tue, 10 January 2006 14:39  |
Eclipse User |
|
|
|
Originally posted by: maxime.cailloux.cea.fr
Hi,
I want to rename a resource file programmatically. I don't find method
which allows that.Is there such a method?
Else,I tried file.move(new_path,true,null) ,it works (the file is
correctly moved in the navigator), but the editor part is not updated(so,
for example, I don't rename again the file, the file must be closed
manually and reopened so that it works).
How do you do that programmatically?
Thanks in advance,
Maxime
|
|
|
| Re: Renaming resource file [message #297238 is a reply to message #297235] |
Tue, 10 January 2006 15:57   |
Eclipse User |
|
|
|
M.Cailloux wrote:
> Hi,
>
> I want to rename a resource file programmatically. I don't find method
> which allows that.Is there such a method?
>
> Else,I tried file.move(new_path,true,null) ,it works (the file is
> correctly moved in the navigator), but the editor part is not updated(so,
> for example, I don't rename again the file, the file must be closed
> manually and reopened so that it works).
> How do you do that programmatically?
>
> Thanks in advance,
> Maxime
do refresh porject after move
|
|
|
|
| Re: Renaming resource file [message #297245 is a reply to message #297235] |
Tue, 10 January 2006 16:18   |
Eclipse User |
|
|
|
Originally posted by: john.eclipsefaq.org
IResource#move is the correct method. The editor should be listening
for resource changes and react accordingly. This sounds like a bug in
the particular editor you are using. Refresh local is NOT required.
--
M.Cailloux wrote:
> Hi,
>
> I want to rename a resource file programmatically. I don't find method
> which allows that.Is there such a method?
>
> Else,I tried file.move(new_path,true,null) ,it works (the file is
> correctly moved in the navigator), but the editor part is not
> updated(so, for example, I don't rename again the file, the file must be
> closed manually and reopened so that it works).
> How do you do that programmatically?
>
> Thanks in advance,
> Maxime
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05070 seconds