Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-11-14 08:32:49 +0000
committerLars Vogel2019-11-14 08:33:13 +0000
commita63fd8787e17e771ad042b21b5ab7875b8fb1bf8 (patch)
treec556273642dee1e2772463cf1cd86f4192e8f267 /org.eclipse.jface.text.examples
parent7be790e400bb2d02a352e9b9b36313497e43b527 (diff)
downloadeclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.gz
eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.tar.xz
eclipse.platform.text-a63fd8787e17e771ad042b21b5ab7875b8fb1bf8.zip
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')
-rw-r--r--org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/ColorAnnotation.java8
-rw-r--r--org.eclipse.jface.text.examples/src/org/eclipse/jface/text/examples/sources/inlined/InlinedAnnotationDemo.java2
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

Back to the top