mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 00:14:50 +00:00
fixed the ‘cleanup/codeformat on save’ save cleanup action in Eclipse Mars.
This commit is contained in:
1 parent
e45b492bb0
commit
eb3c98a675
1 file changed
+7
@@ -312,6 +312,13 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable {
|
||||
.callToWrap(new Hook("org.eclipse.jdt.internal.corext.util.CodeFormatterUtil", "reformat", "org.eclipse.text.edits.TextEdit",
|
||||
"int", "java.lang.String", "int", "int", "int", "java.lang.String", "java.util.Map"))
|
||||
.symbol("lombok.disable").build());
|
||||
|
||||
sm.addScript(ScriptBuilder.setSymbolDuringMethodCall()
|
||||
.target(new MethodTarget("org.eclipse.jdt.internal.corext.fix.CodeFormatFix", "createCleanUp", "org.eclipse.jdt.ui.cleanup.ICleanUpFix",
|
||||
"org.eclipse.jdt.core.ICompilationUnit", "org.eclipse.jface.text.IRegion[]", "boolean", "boolean", "boolean", "boolean"))
|
||||
.callToWrap(new Hook("org.eclipse.jdt.internal.corext.util.CodeFormatterUtil", "reformat", "org.eclipse.text.edits.TextEdit",
|
||||
"int", "java.lang.String", "int", "java.lang.String", "java.util.Map"))
|
||||
.symbol("lombok.disable").build());
|
||||
}
|
||||
|
||||
private static void patchRefactorScripts(ScriptManager sm) {
|
||||
|
||||
Reference in new issue
Block a user