Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ResourceChangeListener & Rename a File
ResourceChangeListener & Rename a File [message #225055] Thu, 08 April 2004 21:03 Go to next message
Eclipse UserFriend
Hi, there,

I noticed that the text editor of Eclipse has such functionality, that is,
when renaming a file, the corresponding editor will just change the title to
reflect the change. I'm wondering how to implement this.

In fact, I've read the article about ResouceChangeListener on Eclipse home
page, and also tried to read the source code about RenameSourceAction, but I
still feel difficult to start with this issue. Is there anyone can give some
simple hint on how to deal with the rename-file thing?

Thanks,

Charles
Re: ResourceChangeListener & Rename a File [message #226672 is a reply to message #225055] Sun, 11 April 2004 21:57 Go to previous messageGo to next message
Eclipse UserFriend
I think I got it. So just ignore this post.

"Charles" <charleszq@163.com> wrote in message
news:c54sfd$pf4$1@eclipse.org...
> Hi, there,
>
> I noticed that the text editor of Eclipse has such functionality, that is,
> when renaming a file, the corresponding editor will just change the title
to
> reflect the change. I'm wondering how to implement this.
>
> In fact, I've read the article about ResouceChangeListener on Eclipse home
> page, and also tried to read the source code about RenameSourceAction, but
I
> still feel difficult to start with this issue. Is there anyone can give
some
> simple hint on how to deal with the rename-file thing?
>
> Thanks,
>
> Charles
>
>
Re: ResourceChangeListener & Rename a File [message #287485 is a reply to message #226672] Thu, 30 June 2005 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I whant a event if the user renames a java class.
....so - I have the same proplem but I havn't the
solution.

Can you help me?


Greetings

Andreas
Re: ResourceChangeListener & Rename a File [message #287768 is a reply to message #287485] Wed, 06 July 2005 17:18 Go to previous message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

IResourceChangeListener is the correct solution. See the article
Charles mentions:

http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html
--

FreeGroup wrote:
> Hi,
>
> I whant a event if the user renames a java class.
> ...so - I have the same proplem but I havn't the
> solution.
>
> Can you help me?
>
>
> Greetings
>
> Andreas
Previous Topic:getCodeSource().getLocation
Next Topic:Can't get Document or fileName from ITestSelection
Goto Forum:
  


Current Time: Sat May 10 05:20:17 EDT 2025

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

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

Back to the top