~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Ide.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.2.6 upstream) (1.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100202113959-s4exdz7er7igylz2
Tags: 2.2.1+dfsg-1
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
                static bool isInitialRun;
65
65
                static bool isInitialRunAfterUpgrade;
66
 
                static string upgradedFromVersion;
 
66
                static Version upgradedFromVersion;
67
67
                
68
68
                public static event ExitEventHandler Exiting;
69
69
                public static event EventHandler Exited;
128
128
                }
129
129
                
130
130
                // If IsInitialRunAfterUpgrade is true, returns the previous version
131
 
                public static string UpgradedFromVersion {
 
131
                public static Version UpgradedFromVersion {
132
132
                        get { return upgradedFromVersion; }
133
133
                }
134
134
                
 
135
                public static Version Version {
 
136
                        get { return new Version (BuildVariables.PackageVersion); }
 
137
                }
 
138
                
135
139
                public static void Initialize (IProgressMonitor monitor)
136
140
                {
137
141
                        preferences = new IdePreferences ();
186
190
 
187
191
                        // Perser service initialization
188
192
 
189
 
                        MonoDevelop.Projects.Dom.Parser.ProjectDomService.AsyncInitialize ();
 
193
                        MonoDevelop.Projects.HelpService.AsyncInitialize ();
 
194
                        
190
195
                        MonoDevelop.Projects.Dom.Parser.ProjectDomService.TrackFileChanges = true;
191
196
                        MonoDevelop.Projects.Dom.Parser.ProjectDomService.ParseProgressMonitorFactory = new ParseProgressMonitorFactory (); 
192
197
 
208
213
                        string lastVersion = PropertyService.Get ("MonoDevelop.Core.LastRunVersion", "1.9.1");
209
214
                        if (lastVersion != BuildVariables.PackageVersion && !isInitialRun) {
210
215
                                isInitialRunAfterUpgrade = true;
211
 
                                upgradedFromVersion = lastVersion;
 
216
                                upgradedFromVersion = new Version (lastVersion);
212
217
                                PropertyService.Set ("MonoDevelop.Core.LastRunVersion", BuildVariables.PackageVersion);
213
218
                        }
214
219
                        
373
378
                        Workbench.ResetToolbars ();
374
379
                }
375
380
 
376
 
                static void OnUpgraded (string previousVersion)
 
381
                static void OnUpgraded (Version previousVersion)
377
382
                {
378
383
                        // Upgrade to latest msbuild version
379
384
                        if (IdeApp.Preferences.DefaultProjectFileFormat.StartsWith ("MSBuild"))
380
385
                                IdeApp.Preferences.DefaultProjectFileFormat = MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.DefaultFormat;
 
386
                        
 
387
                        // Reset the current runtime when upgrading from <2.2, to ensure the default runtime is not stuck to an old mono install
 
388
                        if (previousVersion <= new Version ("2.2"))
 
389
                                IdeApp.Preferences.DefaultTargetRuntime = Runtime.SystemAssemblyService.CurrentRuntime;
381
390
                }
382
391
 
383
392
                static TimeCounter commandTimeCounter;