Pages

Tuesday, October 30, 2012

LKT usage hint of eclipse from Use, Disuse, and Misues of Automated Refactorings paper.

Use, Disuse, and Misuse of Automated Refactorings paper has some clues on how to execute the eclipse refactoring in a programmatic way.
  1. It knows the selected string - "selection-text"
  2. The method that contains the selection - "code-snippet"
  3. Source code - "input"
  4. The kind of refactoring (maybe from the menu) - "id"
Screen Shot 2012 10 30 at 10 51 29 PM

1 comment:

  1. Hey prosseek!
    I am sorry if my question is not completely relevant to this post.
    I was not sure how to contact you.

    I stumbled upon your thread on stackoverflow (http://stackoverflow.com/questions/12898718/how-to-execute-inline-refactoring-programmatically-using-jdt-ltk?rq=1)

    Did you find a solution, that does not require the internal API? I am having a similar issue (http://stackoverflow.com/questions/17146038/triggering-extract-method-in-eclipse-refactoring-ltk-api)

    I'd be glad if you could help me.

    Thanks in advance.

    ReplyDelete