• R/O
  • SSH
  • HTTPS

schluessel: Commit


Commit MetaInfo

Revisión394 (tree)
Tiempo2014-07-25 05:21:10
Autory-moriguchi

Log Message

Editor: fixed some bugs

Cambiar Resumen

Diferencia incremental

--- trunk/schluessel-editor/src/net/morilib/lisp/editor/LispColors.java (revision 393)
+++ trunk/schluessel-editor/src/net/morilib/lisp/editor/LispColors.java (revision 394)
@@ -37,7 +37,7 @@
3737 /**
3838 *
3939 */
40- public static final RGB PROCS = new RGB(72, 72, 255);
40+ public static final RGB PROCS = new RGB(72, 172, 72);
4141
4242 /**
4343 *
@@ -49,4 +49,9 @@
4949 */
5050 public static final RGB SHARP = new RGB(172, 0, 72);
5151
52+ /**
53+ *
54+ */
55+ public static final RGB COMMENT = new RGB(72, 72, 255);
56+
5257 }
--- trunk/schluessel-editor/src/net/morilib/lisp/editor/LispPartitionScanner.java (revision 393)
+++ trunk/schluessel-editor/src/net/morilib/lisp/editor/LispPartitionScanner.java (revision 394)
@@ -19,10 +19,10 @@
1919
2020 public class LispPartitionScanner extends RuleBasedPartitionScanner {
2121
22- public final static String XML_COMMENT = "__lisp_comment";
22+ public final static String LISP_COMMENT = "__lisp_comment";
2323
2424 public LispPartitionScanner() {
25- IToken xmlComment = new Token(XML_COMMENT);
25+ IToken xmlComment = new Token(LISP_COMMENT);
2626 IPredicateRule[] rules = new IPredicateRule[1];
2727
2828 rules[0] = new EndOfLineRule(";", xmlComment);
--- trunk/schluessel-editor/src/net/morilib/lisp/editor/LispConfiguration.java (revision 393)
+++ trunk/schluessel-editor/src/net/morilib/lisp/editor/LispConfiguration.java (revision 394)
@@ -42,7 +42,7 @@
4242 public String[] getConfiguredContentTypes(ISourceViewer sv) {
4343 return new String[] {
4444 IDocument.DEFAULT_CONTENT_TYPE,
45- LispPartitionScanner.XML_COMMENT,
45+ LispPartitionScanner.LISP_COMMENT,
4646 };
4747 }
4848
@@ -68,11 +68,17 @@
6868 public IPresentationReconciler getPresentationReconciler(
6969 ISourceViewer sv) {
7070 PresentationReconciler reconciler = new PresentationReconciler();
71+ NonRuleBasedDamagerRepairer nr;
7172 DefaultDamagerRepairer dr;
7273
7374 dr = new DefaultDamagerRepairer(getXMLScanner());
7475 reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
7576 reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);
77+
78+ nr = new NonRuleBasedDamagerRepairer(
79+ new TextAttribute(colorManager.getColor(LispColors.COMMENT)));
80+ reconciler.setDamager(nr, LispPartitionScanner.LISP_COMMENT);
81+ reconciler.setRepairer(nr, LispPartitionScanner.LISP_COMMENT);
7682 return reconciler;
7783 }
7884
--- trunk/schluessel-editor/src/net/morilib/lisp/editor/LispDocumentProvider.java (revision 393)
+++ trunk/schluessel-editor/src/net/morilib/lisp/editor/LispDocumentProvider.java (revision 394)
@@ -31,7 +31,7 @@
3131 new FastPartitioner(
3232 new LispPartitionScanner(),
3333 new String[] {
34- LispPartitionScanner.XML_COMMENT });
34+ LispPartitionScanner.LISP_COMMENT });
3535 partitioner.connect(document);
3636 document.setDocumentPartitioner(partitioner);
3737 }
Show on old repository browser