running MoveInstanceMethod in JavaConsoleApplication Follow
Can i use MoveInstanceMethodProcessor from a java console application??
new MoveInstanceMethodProcessor(myMethod.getProject(),
myMethod, targetVariable,
myVisibilityPanel.getVisibility(),
isOpenInEditor(),
parameterNames);
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?
Please sign in to leave a comment.
Could you please explain your use case of using a console application?