Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Using Java refactorings in my plugin
Using Java refactorings in my plugin [message #257070] Sat, 25 October 2008 18:35 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to use cmd.exe in Windows to run/debug my application when clicking on "Run" button?
Next Topic:making a working set visible in the package explorer programatically
Goto Forum:
  


Current Time: Mon Sep 01 00:29:52 EDT 2025

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

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

Back to the top