Code Refactoring Issue

Recently I have been refactoring some code (renaming classes, fields, and methods) and I have a ZKM changelog that was produced with the code. I was wondering if there was a way to simultaneously modify that changelog text file when I refactor something within my project. The changelog will be in the same directory, and so far I have been unable to figure out a way to have the contents renamed inside there (e.g. if I rename anInt111 to width, that should be reflected in my changelog also) as they are renamed inside my project source files.

Thanks for any help you can provide.

2 comments
Comment actions Permalink

Hello Method,

This can't be done automatically (the rename refactoring can update text
files, but it only finds fully-qualified class names). However, you can write
a plugin that would update the file for you.

Recently I have been refactoring some code (renaming classes, fields,
and methods) and I have a ZKM changelog that was produced with the
code. I was wondering if there was a way to simultaneously modify that
changelog text file when I refactor something within my project. The
changelog will be in the same directory, and so far I have been unable
to figure out a way to have the contents renamed inside there (e.g. if
I rename anInt111 to width, that should be reflected in my changelog
also) as they are renamed inside my project source files.

Thanks for any help you can provide.

---
Original message URL:
http://www.jetbrains.net/devnet/message/5255037#5255037

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks for the reply. I thought I might need to write a plugin to accomplish this, but I'm not really sure where I would begin with it. Could you point me in the right direction, please?

0

Please sign in to leave a comment.