running MoveInstanceMethod in JavaConsoleApplication

Can i use MoveInstanceMethodProcessor from a java console application??

new MoveInstanceMethodProcessor(myMethod.getProject(),
myMethod, targetVariable,

I mean how to create a Project object from a java project directory(not retrieve the project from an event) and retrieve classes and methods(from the Project Object) as PsiElements and then use them to instantiate a MoveInstanceMethodProcessor and be able to invokeRefactoring(MoveInstanceMethodProcessor).

Is there any way to do this?

1 comment
Comment actions Permalink

Could you please explain your use case of using a console application?


Please sign in to leave a comment.