diff options
author | Lars Vogel | 2019-11-14 08:32:49 +0000 |
---|---|---|
committer | Lars Vogel | 2019-11-14 08:33:13 +0000 |
commit | a63fd8787e17e771ad042b21b5ab7875b8fb1bf8 (patch) | |
tree | c556273642dee1e2772463cf1cd86f4192e8f267 /org.eclipse.jface.text.examples | |
parent | 7be790e400bb2d02a352e9b9b36313497e43b527 (diff) | |
download | eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.gz eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.xz eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.zip |
Whitespace removal for test plug-ins platform.textI20191118-0600I20191117-1800I20191117-0600I20191116-1800I20191116-0600I20191115-1800I20191114-1800I20191114-0410
Done via running the cleanup action on the code base
Change-Id: I9a8d23d6d5e77fec0f845b60b99cac6bd1c2b429
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.jface.text.examples')
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java index deb7b5eb63b..2b8ba89c3ed 100644 --- a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java +++ b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java @@ -37,7 +37,7 @@ import org.eclipse.swt.widgets.Shell; public class ColorAnnotation extends LineContentAnnotation { private Color color; - + private Consumer<MouseEvent> action = e -> { StyledText styledText = super.getTextWidget(); Shell shell = new Shell(styledText.getDisplay()); @@ -61,10 +61,10 @@ public class ColorAnnotation extends LineContentAnnotation { } } }; - + /** * Format the given rgb to hexa color. - * + * * @param rgb * @return the hexa color from the given rgb. */ @@ -121,7 +121,7 @@ public class ColorAnnotation extends LineContentAnnotation { int width = (int) (2 * fontMetrics.getAverageCharacterWidth() + getSquareSize(fontMetrics)); return width; } - + @Override public Consumer<MouseEvent> getAction(MouseEvent e) { return action; diff --git a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java index d50d7e1466b..3e37f642bb8 100644 --- a/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java +++ b/org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java @@ -210,7 +210,7 @@ public class InlinedAnnotationDemo { /** * Add RGB parameter name annotation - * + * * @param paramName * @param rgbContent * @param startIndex |