Hi there,
This question is probably better asked on one of the eclipse.org newsgroups (e.g. eclipse.tools.jdt).
And honestly, I'd like to be more helpful, but it's a bit hard to say what's going wrong in your code, given that you're passing null in various places for things that obviously need proper values. Also, you're using several JDT internal classes in your code, which is definitely not the right way to go.
Finally, I'm not entirely sure what you're intending to do:
- Are you trying to implement support for the Move refactoring for a new language? I honestly haven't looked into this myself much, but the Move refactoring as implemented by the LTK supports "refactoring participants". See the class MoveParticipant for more info.
- Are you simply trying to invoke a Move refactoring programmatically? If the latter, look in the archives of the eclipse.tools.jdt newsgroup for a response by Martin Aeschlimann dated 8 Oct 2007 and titled "Re: Move refactoring via descriptors". There's a code snippet in there that has been deemed by the JDT team to be the appropriate way to initiate Move refactorings. On Feb 24, 2010, at 7:45 AM, lehmia kiran wrote: Hi,
i want to do move method refactoring, below is the code that i am using to move method ////////////////////////////////***************************************/////////////////////////////////////////////////////////// <snip>
Actually this code is giving me runtime exception.also m not confirmed whether am doing refactoring correctly or not...
any help please, reply as soon as possible, as m in really in trouble, and my project is not proceeding furthure. Regards lehmia kiran
-- Cheers, - Bob ------------------------------------------------- Robert M. Fuhrer Research Staff Member Programming Technologies Dept. IBM T.J. Watson Research Center
|