[Monodevelop-patches-list] r1357 - trunk/MonoDevelop/src/Main/StartUp

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Apr 2 23:02:59 EST 2004


Author: tberman
Date: 2004-04-02 23:02:59 -0500 (Fri, 02 Apr 2004)
New Revision: 1357

Added:
   trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs
Removed:
   trunk/MonoDevelop/src/Main/StartUp/SharpDevelopMain.cs
Modified:
   trunk/MonoDevelop/src/Main/StartUp/ChangeLog
   trunk/MonoDevelop/src/Main/StartUp/Makefile.am
Log:
svn rocks


Modified: trunk/MonoDevelop/src/Main/StartUp/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/StartUp/ChangeLog	2004-04-03 03:57:34 UTC (rev 1356)
+++ trunk/MonoDevelop/src/Main/StartUp/ChangeLog	2004-04-03 04:02:59 UTC (rev 1357)
@@ -1,3 +1,7 @@
 2004-04-02  Todd Berman  <tberman at sevenl.net>
 
+	* MonoDevelopMain.cs: move SharpDevelopMain.cs... damn i love svn.
+
+2004-04-02  Todd Berman  <tberman at sevenl.net>
+
 	* SharpDevelopMain.cs: bump to 0.3

Modified: trunk/MonoDevelop/src/Main/StartUp/Makefile.am
===================================================================
--- trunk/MonoDevelop/src/Main/StartUp/Makefile.am	2004-04-03 03:57:34 UTC (rev 1356)
+++ trunk/MonoDevelop/src/Main/StartUp/Makefile.am	2004-04-03 04:02:59 UTC (rev 1357)
@@ -1,7 +1,7 @@
 BASEDIR=$(srcdir)/../../..
 
 FILES= \
-./SharpDevelopMain.cs \
+./MonoDevelopMain.cs \
 ./Dialogs/AddInTreeSettingsHandler.cs \
 ./Dialogs/ExceptionBox.cs \
 ./AssemblyInfo.cs

Copied: trunk/MonoDevelop/src/Main/StartUp/MonoDevelopMain.cs (from rev 1355, trunk/MonoDevelop/src/Main/StartUp/SharpDevelopMain.cs)

Deleted: trunk/MonoDevelop/src/Main/StartUp/SharpDevelopMain.cs
===================================================================
--- trunk/MonoDevelop/src/Main/StartUp/SharpDevelopMain.cs	2004-04-03 03:57:34 UTC (rev 1356)
+++ trunk/MonoDevelop/src/Main/StartUp/SharpDevelopMain.cs	2004-04-03 04:02:59 UTC (rev 1357)
@@ -1,117 +0,0 @@
-// <file>
-//	 <copyright see="prj:///doc/copyright.txt"/>
-//	 <license see="prj:///doc/license.txt"/>
-//	 <owner name="Mike Krüger" email="mike at icsharpcode.net"/>
-//	 <version value="$version"/>
-// </file>
-
-using System;
-using System.IO;
-using System.Collections;
-using System.Xml;
-using System.Threading;
-
-using MonoDevelop.Core.Properties;
-using MonoDevelop.Core.AddIns.Codons;
-using MonoDevelop.Core.AddIns;
-using MonoDevelop.Core.Services;
-using MonoDevelop.Gui.Dialogs;
-
-namespace MonoDevelop
-{
-	/// <summary>
-	/// This Class is the Core main class, it starts the program.
-	/// </summary>
-	public class SharpDevelopMain
-	{
-		static string[] commandLineArgs = null;
-		
-		public static string[] CommandLineArgs {
-			get {
-				return commandLineArgs;
-			}
-		}
-
-		static void ShowErrorBox(object sender, ThreadExceptionEventArgs eargs)
-		{
-			ExceptionDialog ed;
-
-			ed = new ExceptionDialog(eargs.Exception);
-			ed.AddButtonHandler(new ButtonHandler(DialogResultHandler));
-			ed.ShowAll();
-		}
-
-		static void DialogResultHandler(ExceptionDialog ed, DialogResult dr) {
-			ed.Destroy();			
-		}
-
-		/// <summary>
-		/// Starts the core of SharpDevelop.
-		/// </summary>
-		[STAThread()]
-		public static void Main(string[] args)
-		{
-			Gnome.Program program = new Gnome.Program ("MonoDevelop", "0.3", Gnome.Modules.UI, args);
-			Gdk.Threads.Init();
-			commandLineArgs = args;
-			bool noLogo = false;
-		
-			SplashScreenForm.SetCommandLineArgs(args);
-			
-			foreach (string parameter in SplashScreenForm.GetParameterList()) {
-				switch (parameter.ToUpper()) {
-					case "NOLOGO":
-						noLogo = true;
-						break;
-				}
-			}
-
-			if (!noLogo) {
-				SplashScreenForm.SplashScreen.ShowAll ();
-				while (Gtk.Application.EventsPending()) {
-					Gtk.Application.RunIteration (false);
-				}
-			}
-
-			bool ignoreDefaultPath = false;
-			string [] addInDirs = MonoDevelop.AddInSettingsHandler.GetAddInDirectories(out ignoreDefaultPath);
-			AddInTreeSingleton.SetAddInDirectories(addInDirs, ignoreDefaultPath);
-
-			ArrayList commands = null;
-			try {
-				ServiceManager.Services.AddService(new IconService());
-				ServiceManager.Services.AddService(new MessageService());
-				ServiceManager.Services.AddService(new ResourceService());
-				ServiceManager.Services.InitializeServicesSubsystem("/Workspace/Services");
-
-				commands = AddInTreeSingleton.AddInTree.GetTreeNode("/Workspace/Autostart").BuildChildItems(null);
-				for (int i = 0; i < commands.Count - 1; ++i) {
-					((ICommand)commands[i]).Run();
-				}
-
-				// We don't have yet an alternative for Application.ThreadException
-				// How can we handle this?
-				// Application.ThreadException += new ThreadExceptionEventHandler(ShowErrorBox);
-
-			} catch (XmlException e) {
-				Console.WriteLine("Could not load XML :\n" + e.Message);
-				return;
-			} catch (Exception e) {
-				Console.WriteLine("Loading error, please reinstall :\n" + e.ToString());
-				return;
-			} finally {
-				if (SplashScreenForm.SplashScreen != null) {
-					SplashScreenForm.SplashScreen.Hide();
-				}
-			}
-
-			// run the last autostart command, this must be the workbench starting command
-			if (commands.Count > 0) {
-				((ICommand)commands[commands.Count - 1]).Run();
-			}
-
-			// unloading services
-			ServiceManager.Services.UnloadAllServices();
-		}
-	}
-}




More information about the Monodevelop-patches-list mailing list