Author: mhutch
Date: 2007-09-01 17:46:25 -0400 (Sat, 01 Sep 2007)
New Revision: 85179

Modified:
   trunk/monodevelop/Extras/BooBinding/ChangeLog
   trunk/monodevelop/Extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo
   trunk/monodevelop/Extras/BooBinding/Gui/ShellTextView.boo
   trunk/monodevelop/Extras/BooBinding/Parser/ExpressionTypeVisitor.boo
   trunk/monodevelop/Extras/BooBinding/Properties/ShellProperties.boo
Log:
2007-09-01  Michael Hutchinson <[EMAIL PROTECTED]>

        * Gui/ShellTextView.boo, Properties/ShellProperties.boo, 
          Gui/OptionPanels/CodeCompilationPanel.boo: Track Properties API 
          changes. May have unavoidably introduced some instability in working 
          around Boo compiler bug http://jira.codehaus.org/browse/BOO-856 
          (incorrect resolution of overloaded generic methods).
          
        * Parser/ExpressionTypeVisitor.boo: Track Boo AST library API change. 



Modified: trunk/monodevelop/Extras/BooBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/BooBinding/ChangeLog       2007-09-01 21:43:55 UTC 
(rev 85178)
+++ trunk/monodevelop/Extras/BooBinding/ChangeLog       2007-09-01 21:46:25 UTC 
(rev 85179)
@@ -1,3 +1,13 @@
+2007-09-01  Michael Hutchinson <[EMAIL PROTECTED]>
+
+       * Gui/ShellTextView.boo, Properties/ShellProperties.boo, 
+         Gui/OptionPanels/CodeCompilationPanel.boo: Track Properties API 
+         changes. May have unavoidably introduced some instability in working 
+         around Boo compiler bug http://jira.codehaus.org/browse/BOO-856 
+         (incorrect resolution of overloaded generic methods).
+         
+       * Parser/ExpressionTypeVisitor.boo: Track Boo AST library API change. 
+
 2007-08-31  Michael Hutchinson <[EMAIL PROTECTED]>
 
        * Gui/ShellTextView.boo, Properties/ShellProperties.boo: Track API 

Modified: 
trunk/monodevelop/Extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo
===================================================================
--- 
trunk/monodevelop/Extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo   
    2007-09-01 21:43:55 UTC (rev 85178)
+++ 
trunk/monodevelop/Extras/BooBinding/Gui/OptionPanels/CodeCompilationPanel.boo   
    2007-09-01 21:46:25 UTC (rev 85179)
@@ -28,7 +28,6 @@
 import MonoDevelop.Core.Gui.Dialogs
 import MonoDevelop.Components
 import MonoDevelop.Core
-import MonoDevelop.Core.Properties
 
 public class CodeGenerationPanel(AbstractOptionPanel):
        private codeGenerationLabel as Gtk.Label = Gtk.Label ()
@@ -123,7 +122,13 @@
 
        
        public override def LoadPanelContents() as void:
-               configuration = 
cast(DotNetProjectConfiguration,(cast(IProperties,CustomizationObject)).GetProperty("Config"))
+               //FIXME: BOO COMPILER CAN'T RESOLVE OVERLOADS OF GENERIC METHODS
+               //configuration = 
(cast(MonoDevelop.Core.Properties,CustomizationObject)).Get [of 
DotNetProjectConfiguration] ("Config")
+               configuration = 
(cast(MonoDevelop.Core.Properties,CustomizationObject)).Get [of 
DotNetProjectConfiguration] ("Config", null)
+               if configuration == null:
+                       raise InvalidOperationException ("Invalid program state 
as a result of Boo compiler bug http://jira.codehaus.org/browse/BOO-856";)
+               //END FIXME
+               
                compilerParameters = cast (BooCompilerParameters, 
configuration.CompilationParameters)
 
                checkDebug.Active = configuration.DebugMode

Modified: trunk/monodevelop/Extras/BooBinding/Gui/ShellTextView.boo
===================================================================
--- trunk/monodevelop/Extras/BooBinding/Gui/ShellTextView.boo   2007-09-01 
21:43:55 UTC (rev 85178)
+++ trunk/monodevelop/Extras/BooBinding/Gui/ShellTextView.boo   2007-09-01 
21:46:25 UTC (rev 85179)
@@ -33,7 +33,6 @@
 import MonoDevelop.Components
 import MonoDevelop.Projects.Gui.Completion
 import MonoDevelop.Core
-import MonoDevelop.Core.Properties
 import MonoDevelop.Projects
 import MonoDevelop.Ide.Gui
 import MonoDevelop.Projects.Parser
@@ -464,7 +463,7 @@
                else:
                        _sel.Hide()
        
-       def OnPropertyChanged (obj as object, e as PropertyEventArgs):
+       def OnPropertyChanged (obj as object, e as PropertyChangedEventArgs):
                if e.Key == "Font":
                        self.ModifyFont(Model.Properties.Font)
                elif e.Key == "AutoIndentBlocks":

Modified: trunk/monodevelop/Extras/BooBinding/Parser/ExpressionTypeVisitor.boo
===================================================================
--- trunk/monodevelop/Extras/BooBinding/Parser/ExpressionTypeVisitor.boo        
2007-09-01 21:43:55 UTC (rev 85178)
+++ trunk/monodevelop/Extras/BooBinding/Parser/ExpressionTypeVisitor.boo        
2007-09-01 21:46:25 UTC (rev 85179)
@@ -81,7 +81,7 @@
                else:
                        Log ("${node.ToString()} - ${node.GetType().FullName}")
        
-       override def OnCallableBlockExpression(node as CallableBlockExpression):
+       override def OnBlockExpression(node as BlockExpression):
                Debug(node)
                CreateReturnType("System.Delegate")
        

Modified: trunk/monodevelop/Extras/BooBinding/Properties/ShellProperties.boo
===================================================================
--- trunk/monodevelop/Extras/BooBinding/Properties/ShellProperties.boo  
2007-09-01 21:43:55 UTC (rev 85178)
+++ trunk/monodevelop/Extras/BooBinding/Properties/ShellProperties.boo  
2007-09-01 21:46:25 UTC (rev 85179)
@@ -9,26 +9,31 @@
 import Pango
 
 import MonoDevelop.Components
-import MonoDevelop.Core.Properties
 import MonoDevelop.Core
 
 class ShellProperties:
-       private propertyService = cast (PropertyService, 
ServiceManager.GetService (typeof(PropertyService)))
-       private properties = propertyService.GetProperty of IProperties 
(PropertyName, DefaultProperties())
-
+       //FIXME: BOO COMPILER CAN'T RESOLVE OVERLOADS OF GENERIC METHODS
+       //private properties = PropertyService.Get [of Properties] 
(PropertyName)
+       private properties as Properties
+       public def constructor ():
+               properties = PropertyService.Get [of Properties] (PropertyName, 
null)
+               if properties == null:
+                       raise InvalidOperationException ("Invalid program state 
as a result of Boo compiler bug http://jira.codehaus.org/browse/BOO-856";)
+       //END FIXME
+       
        public abstract PropertyName as string:
                get:
                        pass
 
-       public InternalProperties as IProperties:
+       public InternalProperties as Properties:
                get:
                        return properties
        
        FontName as string:
                get:
-                       return properties.GetProperty ("Font", 
"__default_monospace")
+                       return properties.Get [of string] ("Font", 
"__default_monospace")
                set:
-                       properties.SetProperty ("Font", value)
+                       properties.Set ("Font", value)
        
        Font as FontDescription:
                get:
@@ -40,24 +45,24 @@
        
        AutoIndentBlocks as bool:
                get:
-                       return properties.GetProperty ("AutoIndentBlocks", true)
+                       return properties.Get [of bool] ("AutoIndentBlocks", 
true)
                set:
-                       properties.SetProperty ("AutoIndentBlocks", value)
+                       properties.Set ("AutoIndentBlocks", value)
        
        ResetClearsScrollback as bool:
                get:
-                       return properties.GetProperty ("ResetClearsScrollback", 
true)
+                       return properties.Get [of bool] 
("ResetClearsScrollback", true)
                set:
-                       properties.SetProperty ("ResetClearsScrollback", value)
+                       properties.Set ("ResetClearsScrollback", value)
 
        ResetClearsHistory as bool:
                get:
-                       return properties.GetProperty ("ResetClearsHistory", 
true)
+                       return properties.Get [of bool] ("ResetClearsHistory", 
true)
                set:
-                       properties.SetProperty ("ResetClearsHistory", value)
+                       properties.Set ("ResetClearsHistory", value)
 
        LoadAssemblyAfterBuild as bool:
                get:
-                       return properties.GetProperty 
("LoadAssemblyAfterBuild", true)
+                       return properties.Get [of bool] 
("LoadAssemblyAfterBuild", true)
                set:
-                       properties.SetProperty ("LoadAssemblyAfterBuild", value)
+                       properties.Set ("LoadAssemblyAfterBuild", value)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to