Listening for renaming/moving of classes

One of the features I would like to add to my in-house
internationalization plugin is the ability to react to the renaming or
moving of a class so that I can move or rename resource bundles. Is
there way to do that in the 4.0 OpenAPI?

Thanks,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

3 comments
Comment actions Permalink

Gordon Tyler wrote:

One of the features I would like to add to my in-house
internationalization plugin is the ability to react to the renaming or
moving of a class so that I can move or rename resource bundles. Is
there way to do that in the 4.0 OpenAPI?


See com.intellij.refactoring.listeners.*

Friendly,
Dmitry
--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Dmitry Lomov (JetBrains) wrote:

See com.intellij.refactoring.listeners.*


If a rename or move is undone, the listeners are not notified of the
reversed operation. Is this intentional? Is there a way I can be
notified when a rename or move is undone?

Thanks,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0
Comment actions Permalink

Gordon Tyler wrote:

Dmitry Lomov (JetBrains) wrote:

>> See com.intellij.refactoring.listeners.*


If a rename or move is undone, the listeners are not notified of the
reversed operation. Is this intentional? Is there a way I can be
notified when a rename or move is undone?


Nevermind, it seems that changes to other files made by the listener in
response to the rename notification are undone along with the rename.
Exactly as I wanted 8)

Thanks,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

Please sign in to leave a comment.