After refactoring a package:
In my renamelist there a only the files which are renamed.
How can I find out that the whole package was renamed?
Not in CVS but in other VCS it makes sense to rename the directory.
Thanks.
"Michael" <mm...@web.de> wrote in message
news:42d2c8cf$1...@newsgroups.borland.com...
could you tell me more about using the refactoring history.
I coundnt find s.th. about that in the docs.
Is there a class like VCSRenameNotifier?
How can I use these information.
Or do I have to check the XML file by myself? That woundnt be so nice!
Thanks.
"Bill Joy" <wc...@pacbell.net> schrieb im Newsbeitrag
news:42d86cfb$1...@newsgroups.borland.com...
RefactorHistoryCache cache = RefactorHistoryCache.instance(jbProject);
RenameClassWrapper wrapper = cache.findRefactoringForClass(oldClassName);
if (wrapper != null) {
String newClassName = getNewClassName();
}
You can convert an Url into a class name (untested code):
if (url.getFileExtension().equals("java")) {
Url[] urls = jbProject.getPaths().getSourcePath();
for (int i = 0; i < urls.length; i++) {
if (urls[i].isParentOf(url)) {
String path = urls[i].getRelativePath(url).replace('/', '.');
int j = path.lastIndexOf(".java");
String className = path.substring(0, j);
}
}
}
"MIchael" <mi...@web.de> wrote in message
news:42df...@newsgroups.borland.com...