mail[Wesnoth-commits] r44144 - /trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by timotei_cluj on July 13, 2010 - 19:58:
Author: timotei
Date: Tue Jul 13 19:58:26 2010
New Revision: 44144

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44144&view=rev
Log:
eclipse plugin: begin+end tag highlighting - part1 - extend the ui module

Modified:
    trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java

Modified: 
trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java?rev=44144&r1=44143&r2=44144&view=diff
==============================================================================
--- trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java 
(original)
+++ trunk/utils/java/org.wesnoth.wml.ui/src/org/wesnoth/ui/WMLUiModule.java 
Tue Jul 13 19:58:26 2010
@@ -7,8 +7,11 @@
 import org.wesnoth.ui.syntax.WMLAntlrTokenToAttributeIdMapper;
 import org.wesnoth.ui.syntax.WMLHighlightingConfiguration;
 import org.wesnoth.ui.syntax.WMLSemanticHighlightingCalculator;
+import org.wesnoth.ui.syntax.bracketmatching.WMLBracketMatching;
 
 import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.xtext.ui.editor.XtextEditor;
+import org.eclipse.xtext.ui.editor.bracketmatching.IBracketMatcher;
 import 
org.eclipse.xtext.ui.editor.outline.transformer.ISemanticModelTransformer;
 import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration;
 import 
org.eclipse.xtext.ui.editor.syntaxcoloring.ISemanticHighlightingCalculator;
@@ -44,4 +47,15 @@
        {
                return WMLSemanticHighlightingCalculator.class;
        }
+
+       public Class<? extends IBracketMatcher> bindIBracketMatcher()
+       {
+               // XtextGrammarBracketMatcher
+               return WMLBracketMatching.class;
+       }
+
+       public Class<? extends XtextEditor> bindEditor()
+       {
+               return WMLEditor.class;
+       }
 }




Related Messages


Powered by MHonArc, Updated Tue Jul 13 20:00:11 2010