diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-09 02:30:39 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-09 02:30:39 +0200 |
commit | f7db5c02eba332c69971ad59b3543774ba25285d (patch) | |
tree | 58fd9fb1496c10aa9558e3229ec8a68783710fae /src_eclipseagent/lombok/eclipse/agent/PatchFixes.java | |
parent | e88b49fdf77ba363645a95ace41023c16913b51e (diff) | |
download | lombok-f7db5c02eba332c69971ad59b3543774ba25285d.tar.gz lombok-f7db5c02eba332c69971ad59b3543774ba25285d.tar.bz2 lombok-f7db5c02eba332c69971ad59b3543774ba25285d.zip |
After a 4 hour crazy search, we found it! Rename Compilation Unit refactor script now works fine, even if your class has a @Data annotation.
Diffstat (limited to 'src_eclipseagent/lombok/eclipse/agent/PatchFixes.java')
-rw-r--r-- | src_eclipseagent/lombok/eclipse/agent/PatchFixes.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/PatchFixes.java b/src_eclipseagent/lombok/eclipse/agent/PatchFixes.java index 1914bba7..c8459a5f 100644 --- a/src_eclipseagent/lombok/eclipse/agent/PatchFixes.java +++ b/src_eclipseagent/lombok/eclipse/agent/PatchFixes.java @@ -16,6 +16,10 @@ public class PatchFixes { return (bits & BIT24) != 0; } + public static boolean skipRewritingGeneratedNodes(org.eclipse.jdt.core.dom.ASTNode node) throws Exception { + return ((Boolean)node.getClass().getField("$isGenerated").get(node)).booleanValue(); + } + public static void setIsGeneratedFlag(org.eclipse.jdt.core.dom.ASTNode domNode, org.eclipse.jdt.internal.compiler.ast.ASTNode internalNode) throws Exception { boolean isGenerated = internalNode.getClass().getField("$generatedBy").get(internalNode) != null; |