mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
The line about lombok added to the about dialog wasn't working for all eclipse releases and ways to boot up eclipse. Now it does. Also added an item for this in the changelog.
This commit is contained in:
1 parent
101adef99c
commit
2ddf708b37
3 files changed
+5
-5
No files matched your search
@@ -5,6 +5,7 @@ Lombok Changelog
|
||||
* REGRESSION: 0.10.6 causes ClassNotFoundErrors when using ecj (and thus, play framework, gwt, etc). [Issue #320](http://code.google.com/p/projectlombok/issues/detail?id=320)
|
||||
* BUGFIX: Eclipse refactoring Extract Interface was broken when using lombok annotation to generate methods. [Issue #86](http://code.google.com/p/projectlombok/issues/detail?id=86)
|
||||
* BUGFIX: Eclipse action Sort Members was broken when using lombok annotation to generate methods or fields. [Issue #265](http://code.google.com/p/projectlombok/issues/detail?id=265)
|
||||
* ENHANCEMENT: Lombok now adds a line to the Eclipse About dialog about itself.
|
||||
|
||||
### v0.10.6 (December 19th, 2011)
|
||||
* PERFORMANCE: Performance issues (memory leaks) when using lombok in netbeans, introduced in 0.10, have been fixed. [Issue #242](http://code.google.com/p/projectlombok/issues/detail?id=242)
|
||||
|
||||
@@ -158,8 +158,8 @@ public class EclipsePatcher extends Agent {
|
||||
*/
|
||||
sm.addScript(ScriptBuilder.wrapReturnValue()
|
||||
.target(new MethodTarget("org.eclipse.core.internal.runtime.Product", "getProperty", "java.lang.String", "java.lang.String"))
|
||||
.wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "addLombokNotesToEclipseAboutDialog", "java.lang.String", "java.lang.String", "org.eclipse.core.internal.runtime.Product", "java.lang.String"))
|
||||
.request(StackRequest.RETURN_VALUE, StackRequest.THIS, StackRequest.PARAM1)
|
||||
.wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "addLombokNotesToEclipseAboutDialog", "java.lang.String", "java.lang.String", "java.lang.String"))
|
||||
.request(StackRequest.RETURN_VALUE, StackRequest.PARAM1)
|
||||
.transplant().build());
|
||||
}
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ import lombok.core.DiagnosticsReceiver;
|
||||
import lombok.core.PostCompiler;
|
||||
import lombok.core.Version;
|
||||
|
||||
import org.eclipse.core.internal.runtime.Product;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.jdt.core.IAnnotatable;
|
||||
import org.eclipse.jdt.core.IAnnotation;
|
||||
@@ -50,8 +49,8 @@ import org.eclipse.jdt.internal.core.dom.rewrite.TokenScanner;
|
||||
import org.eclipse.jdt.internal.corext.refactoring.structure.ASTNodeSearchUtil;
|
||||
|
||||
public class PatchFixes {
|
||||
public static String addLombokNotesToEclipseAboutDialog(String origReturnValue, Product product, String key) {
|
||||
if ("Eclipse SDK".equals(product.getName()) && "aboutText".equals(key)) {
|
||||
public static String addLombokNotesToEclipseAboutDialog(String origReturnValue, String key) {
|
||||
if ("aboutText".equals(key)) {
|
||||
return origReturnValue + "\n\nLombok " + Version.getFullVersion() + " is installed. http://projectlombok.org/";
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user