Man-On-Earth
Man-On-Earth
> As I continued to try to resolve this problem, and I was going through my Apps on my Microsoft Store, I saw I add the app "Windows Subsytem for...
Oh thanks! I initiate the launcher by doing this: `init(ConstantUtil.PROCESSOR_ROOT_PATH); launcher.setArgs(args);` init()is a method with static and public modifiers,I set some environment properties in it, including setAutoImports(), it just doesn't...
Yeah I saw it just a few days ago, it seems like a new feature and it's quite convenient to use. Anyway, thanks for your help again, wish you have...
> Have you tried: > > ```java > //From your launcher > launcher.getModel().getRootPackage() > //from your CtClass > ((CtPackage) cl.getParent(CtModelImpl.CtRootPackage.class)); > ``` > > ? I tried just now. It...
> If you want to access the `CtModel` in your processor, you can get it from the launcher and pass it as a parameter for the processor's constructor. Good idea!...
> I close this issue, but if you are further question, don't hesitate to reopen or to open a new one. Ok, I forgot that. Thank you.
> Thanks for the bug report. > > Could you paste the full stack trace? Of course. ``` Exception in thread "main" spoon.SpoonException: The default behavior has changed, a new...
ObjectReferenceProcessor.java and Starter.java are defined myself. ```java public void process(CtLoop oneLoop) { CtStatement loopBody = oneLoop.getBody(); List localVariables = loopBody.filterChildren(new AbstractFilter() { @Override public boolean matches(CtLocalVariable variable) { return (null...
> AFAIU, you cannot call `localVariable.insertAfter` because it's already in the AST. > > either you call `localVariable.delete` first or maybe you mean `snippet.insertAfter(localVariable)` instead? I want to insert snippet...
I ran my program just now and I found that it worked, maybe it's because I had done some changes to the input source code. Anyway, Martin, thanks for your...