Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2011-05-23 11:08:23 +0000
committerDani Megert2011-05-23 11:08:23 +0000
commitf524df607e1fe1e80b0ee8abbddb43bf242f45a6 (patch)
tree528549a3aad99fe0742ab8fac230e469463cd5c1 /org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui
parenta3c8209de15c12a31f27fbf6e85e512f5364659f (diff)
downloadeclipse.platform.text-f524df607e1fe1e80b0ee8abbddb43bf242f45a6.tar.gz
eclipse.platform.text-f524df607e1fe1e80b0ee8abbddb43bf242f45a6.tar.xz
eclipse.platform.text-f524df607e1fe1e80b0ee8abbddb43bf242f45a6.zip
Fixed missing default coloring for Javadoc partitions.v20110524-0800R3_7
Diffstat (limited to 'org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui')
-rw-r--r--org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/javadoc/JavaDocScanner.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/javadoc/JavaDocScanner.java b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/javadoc/JavaDocScanner.java
index c3b47eca9..fe4795454 100644
--- a/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/javadoc/JavaDocScanner.java
+++ b/org.eclipse.ui.examples.javaeditor/Eclipse Java Editor Example/org/eclipse/ui/examples/javaeditor/javadoc/JavaDocScanner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -61,6 +61,8 @@ public class JavaDocScanner extends RuleBasedScanner {
*/
public JavaDocScanner(JavaColorProvider provider) {
super();
+
+ setDefaultReturnToken(new Token(new TextAttribute(provider.getColor(JavaColorProvider.JAVADOC_DEFAULT))));
IToken keyword= new Token(new TextAttribute(provider.getColor(JavaColorProvider.JAVADOC_KEYWORD)));
IToken tag= new Token(new TextAttribute(provider.getColor(JavaColorProvider.JAVADOC_TAG)));

Back to the top