Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ResourceChangeListener & Rename a File
ResourceChangeListener & Rename a File [message #225055] Fri, 09 April 2004 01:03 Go to next message
Charles Zhang is currently offline Charles ZhangFriend
Messages: 9
Registered: July 2009
Junior Member
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] Mon, 12 April 2004 01:57 Go to previous messageGo to next message
Charles Zhang is currently offline Charles ZhangFriend
Messages: 9
Registered: July 2009
Junior Member
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 20:15 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
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 21: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 Oct 19 19:30:23 GMT 2024

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

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

Back to the top