Using Java refactorings in my plugin [message #257070] |
Sat, 25 October 2008 18:35  |
Eclipse User |
|
|
|
Hello,
I'm a total beginner in area of building plugins for Eclipse, so forgive
me if my question is trivial.
I'd like to know if there is possibility to use built-in Java refactorings
inside my plugin. I found that in IJavaRefactorings interface there are
String ids for refactorings offered by the JDT tooling. What I don't know
and couldn't find is how to pass them the parts of code I need to
refactor. I'd be very graterful if anyone could help me with that.
Thanks in advance.
|
|
|
Re: Using Java refactorings in my plugin [message #257079 is a reply to message #257070] |
Sun, 26 October 2008 05:57  |
Eclipse User |
|
|
|
Hi,
I'd like to provide you with some more details about my problem, cause I
feel that what I wrote yesterday may not be sufficient.
What I need is to build a chain of basic Java refactorings. Main idea is,
that the user will provide the data about what should be refactored (e.g.
methods for renaming, fields to encapsulate, etc.) and then the plugin
should complete this request. It would be great, if I could use the
refactorings that already are defined instead of writing them on my own.
Now I'm wondering if there is any way to call them from inside of my
plugin. While browsing the API I found some descriptors for standard Java
refactorings, but I can't see the way to provide them with data about what
needs to be refactored.
As I wrote earlier, I'm just a beginner in writing plugins to Eclipse and
still don't know how exactly all this works, so once again I'm sorry if my
question is trivial or simply stupid.
I'd be very, very grateful if someone could help me.
Thanks in advance,
Michal Olejnik
|
|
|
Powered by
FUDForum. Page generated in 0.03365 seconds