Author: lluis
Date: 2005-12-13 09:38:32 -0500 (Tue, 13 Dec 2005)
New Revision: 54285
Modified:
trunk/monodevelop/Extras/BooBinding/BooLanguageBinding.boo
trunk/monodevelop/Extras/BooBinding/ChangeLog
trunk/monodevelop/Extras/BooBinding/Parser/BooParser.boo
trunk/monodevelop/Extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
trunk/monodevelop/Extras/BooBinding/templates/EmptyBooFile.xft.xml
Log:
2005-12-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* Parser/BooParser.boo: Track changes in the api.
* BooLanguageBinding.boo: Implemented the new methods in
IDotNetLanguageBinding.
* templates/*: Set the correct category, language and project type.
Modified: trunk/monodevelop/Extras/BooBinding/BooLanguageBinding.boo
===================================================================
--- trunk/monodevelop/Extras/BooBinding/BooLanguageBinding.boo 2005-12-13
14:37:12 UTC (rev 54284)
+++ trunk/monodevelop/Extras/BooBinding/BooLanguageBinding.boo 2005-12-13
14:38:32 UTC (rev 54285)
@@ -26,14 +26,20 @@
import System.Reflection
import System.Resources
import System.Xml
+import System.CodeDom.Compiler;
+import Boo.Lang.CodeDom;
import MonoDevelop.Projects
+import MonoDevelop.Projects.Parser
+import MonoDevelop.Projects.CodeGeneration
import MonoDevelop.Core.Gui
import MonoDevelop.Core
-public class BooLanguageBinding(ILanguageBinding):
+public class BooLanguageBinding(IDotNetLanguageBinding):
internal static LanguageName = "Boo"
compilerServices = BooBindingCompilerServices ()
+ provider = BooCodeProvider ()
+ parser = BooBinding.Parser.BooParser ()
public Language as string:
get:
@@ -59,3 +65,20 @@
public CommentTag as string:
get:
return "//"
+
+ def IsSourceCodeFile (fileName as string):
+ return Path.GetExtension(fileName).ToLower() == ".boo"
+
+ public def GetCodeDomProvider () as CodeDomProvider:
+ return provider
+
+ public def GetFileName (baseName as string) as string:
+ return baseName + ".boo"
+
+ public Parser as IParser:
+ get:
+ return parser
+
+ public Refactorer as IRefactorer:
+ get:
+ return null
Modified: trunk/monodevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/BooBinding/ChangeLog 2005-12-13 14:37:12 UTC
(rev 54284)
+++ trunk/monodevelop/Extras/BooBinding/ChangeLog 2005-12-13 14:38:32 UTC
(rev 54285)
@@ -1,3 +1,10 @@
+2005-12-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * Parser/BooParser.boo: Track changes in the api.
+ * BooLanguageBinding.boo: Implemented the new methods in
+ IDotNetLanguageBinding.
+ * templates/*: Set the correct category, language and project type.
+
2005-11-25 Rodrigo B. de Oliveira <[EMAIL PROTECTED]>
* Gui/ShellTextView.boo: 'in' operator now requires a proper array
argument
Modified: trunk/monodevelop/Extras/BooBinding/Parser/BooParser.boo
===================================================================
--- trunk/monodevelop/Extras/BooBinding/Parser/BooParser.boo 2005-12-13
14:37:12 UTC (rev 54284)
+++ trunk/monodevelop/Extras/BooBinding/Parser/BooParser.boo 2005-12-13
14:38:32 UTC (rev 54285)
@@ -53,12 +53,6 @@
get:
return BooBinding.Parser.ExpressionFinder()
- def CanParse(fileName as string):
- return Path.GetExtension(fileName).ToLower() == ".boo"
-
- def CanParse(project as Project):
- return project.ProjectType ==
BooBinding.BooLanguageBinding.LanguageName
-
def Parse(fileName as string) as ICompilationUnitBase:
content as string
using r = StreamReader(fileName):
Modified:
trunk/monodevelop/Extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
===================================================================
--- trunk/monodevelop/Extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
2005-12-13 14:37:12 UTC (rev 54284)
+++ trunk/monodevelop/Extras/BooBinding/templates/BooGtkSharpWindow.xft.xml
2005-12-13 14:38:32 UTC (rev 54285)
@@ -7,7 +7,7 @@
<TemplateConfiguration>
<_Name>Gtk# Window</_Name>
<Icon>res:Boo.File.Form</Icon>
- <Category>Boo</Category>
+ <Category>General</Category>
<LanguageName>Boo</LanguageName>
<_Description>Creates a top-level Gtk# window</_Description>
</TemplateConfiguration>
@@ -18,9 +18,9 @@
import System
import Gtk
-class CreatedWindow(Window):
+class ${Name}(Window):
def constructor():
- super("CreatedWindow")
+ super("${Name}")
]]></File>
</TemplateFiles>
Modified: trunk/monodevelop/Extras/BooBinding/templates/EmptyBooFile.xft.xml
===================================================================
--- trunk/monodevelop/Extras/BooBinding/templates/EmptyBooFile.xft.xml
2005-12-13 14:37:12 UTC (rev 54284)
+++ trunk/monodevelop/Extras/BooBinding/templates/EmptyBooFile.xft.xml
2005-12-13 14:38:32 UTC (rev 54285)
@@ -4,7 +4,7 @@
<TemplateConfiguration>
<_Name>Empty File</_Name>
<Icon>res:Boo.File.EmptyFile</Icon>
- <Category>Boo</Category>
+ <Category>General</Category>
<LanguageName>Boo</LanguageName>
<_Description>Creates an empty Boo file.</_Description>
</TemplateConfiguration>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches