mail-archives/monodevelop-patches-list/2004-July/001486.html

259 строки
9.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1879 - in trunk/MonoDevelop/Core/src/Main/Base: . Commands
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1879%20-%20in%20trunk/MonoDevelop/Core/src/Main/Base%3A%20.%20Commands&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="001485.html">
<LINK REL="Next" HREF="001487.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1879 - in trunk/MonoDevelop/Core/src/Main/Base: . Commands</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1879%20-%20in%20trunk/MonoDevelop/Core/src/Main/Base%3A%20.%20Commands&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1879 - in trunk/MonoDevelop/Core/src/Main/Base: . Commands">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Thu Jul 1 20:44:51 EDT 2004</I>
<P><UL>
<LI>Previous message: <A HREF="001485.html">[Monodevelop-patches-list] r1878 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . CodeCompletion
</A></li>
<LI>Next message: <A HREF="001487.html">[Monodevelop-patches-list] r1880 - trunk/MonoDevelop/Core/src/Main/StartUp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1486">[ date ]</a>
<a href="thread.html#1486">[ thread ]</a>
<a href="subject.html#1486">[ subject ]</a>
<a href="author.html#1486">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: jluke
Date: 2004-07-01 20:44:51 -0400 (Thu, 01 Jul 2004)
New Revision: 1879
Modified:
trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs
Log:
2004-07-01 John Luke &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">jluke at cfl.rr.com</A>&gt;
* Commands/AutoStartCommands.cs: remove old Code generation,
assembly preload, and tip of the day on start, because they
are no longer used, and I believe no longer will be
someone correct me if I am wrong
Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-01 23:47:11 UTC (rev 1878)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog 2004-07-02 00:44:51 UTC (rev 1879)
@@ -1,3 +1,10 @@
+2004-07-01 John Luke &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">jluke at cfl.rr.com</A>&gt;
+
+ * Commands/AutoStartCommands.cs: remove old Code generation,
+ assembly preload, and tip of the day on start, because they
+ are no longer used, and I believe no longer will be
+ someone correct me if I am wrong
+
2004-07-01 Todd Berman &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">tberman at off.net</A>&gt;
* Gui/Worbench/Layouts/SdiWorkspaceLayout.cs: Remove the code that
Modified: trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs 2004-07-01 23:47:11 UTC (rev 1878)
+++ trunk/MonoDevelop/Core/src/Main/Base/Commands/AutostartCommands.cs 2004-07-02 00:44:51 UTC (rev 1879)
@@ -6,32 +6,23 @@
// &lt;/file&gt;
using System;
-using System.IO;
-using System.Collections;
-using System.CodeDom.Compiler;
-using System.Reflection;
-using System.Threading;
-using System.Runtime.Remoting;
-using System.Security.Policy;
using MonoDevelop.Core.Services;
using MonoDevelop.Core.Properties;
using MonoDevelop.Core.AddIns.Codons;
-using MonoDevelop.Services;
using MonoDevelop.Gui;
using MonoDevelop.Gui.Dialogs;
using MonoDevelop.Gui.ErrorHandlers;
+using MonoDevelop.Internal.Parser;
+using MonoDevelop.Services;
using SA = MonoDevelop.SharpAssembly.Assembly;
-using MonoDevelop.Internal.Parser;
-
namespace MonoDevelop.Commands
{
public class InitializeWorkbenchCommand : AbstractCommand
{
-
public override void Run()
{
DefaultWorkbench w = new DefaultWorkbench();
@@ -43,34 +34,6 @@
}
}
- public class StartCodeCompletionWizard : AbstractCommand
- {
-
- public static bool generatingCompletionData = false;
-
- public override void Run()
- {
- PropertyService propertyService = (PropertyService)ServiceManager.GetService(typeof(PropertyService));
- string path = propertyService.GetProperty (&quot;SharpDevelop.CodeCompletion.DataDirectory&quot;, null);
- string codeCompletionProxyFile = Path.Combine (path, &quot;mscorlib.pidb&quot;);
- //Console.WriteLine(&quot;checking for existence of {0}&quot;, codeCompletionProxyFile);
-
-/* if (!File.Exists (codeCompletionProxyFile)) {
- generatingCompletionData = true;
- RunWizard();
- }
-*/ }
-
- /*void RunWizard()
- {
- if (SplashScreenForm.SplashScreen.Visible) {
- SplashScreenForm.SplashScreen.Hide();
- }
-
- (new GenerateDatabase()).Start();
- }*/
- }
-
public class StartParserServiceThread : AbstractCommand
{
public override void Run()
@@ -79,79 +42,19 @@
parserService.StartParserThread();
}
}
-
- public class StartSharpAssemblyPreloadThread : AbstractCommand
- {
- public override void Run()
- {
- Thread preloadThread = new Thread(new ThreadStart(PreloadThreadStart));
- preloadThread.IsBackground = true;
- preloadThread.Priority = ThreadPriority.Lowest;
- preloadThread.Start();
- }
-
- public void PreloadThreadStart()
- {
- Console.WriteLine(&quot;#Assembly: starting preloading thread&quot;);
- SA.SharpAssembly.Load(&quot;System&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system&quot;);
- SA.SharpAssembly.Load(&quot;System.Xml&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.xml&quot;);
- SA.SharpAssembly.Load(&quot;System.Windows.Forms&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.windows.forms&quot;);
- SA.SharpAssembly.Load(&quot;System.Drawing&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.drawing&quot;);
- SA.SharpAssembly.Load(&quot;System.Data&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.data&quot;);
- SA.SharpAssembly.Load(&quot;System.Design&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.design&quot;);
- SA.SharpAssembly.Load(&quot;System.Web&quot;);
- Console.WriteLine(&quot;#Assembly: preloaded system.web&quot;);
- }
- }
-
+
public class StartWorkbenchCommand : AbstractCommand
{
const string workbenchMemento = &quot;SharpDevelop.Workbench.WorkbenchMemento&quot;;
- EventHandler idleEventHandler;
- bool isCalled = false;
-
- /// &lt;remarks&gt;
- /// The worst workaround in the whole project
- /// &lt;/remarks&gt;
- void ShowTipOfTheDay(object sender, EventArgs e)
- {
- if (isCalled) {
- //Application.Idle -= idleEventHandler;
- return;
- }
- isCalled = true;
- // show tip of the day
- PropertyService propertyService = (PropertyService)ServiceManager.GetService(typeof(PropertyService));
- if (propertyService.GetProperty(&quot;MonoDevelop.Gui.Dialog.TipOfTheDayView.ShowTipsAtStartup&quot;, false)) {
- ViewTipOfTheDay dview = new ViewTipOfTheDay();
- dview.Run();
- }
- }
-
public override void Run()
{
-
- if (StartCodeCompletionWizard.generatingCompletionData) {
- Gtk.Application.Run ();
- return;
- }
-
// register string tag provider (TODO: move to add-in tree :)
StringParserService stringParserService = (StringParserService)ServiceManager.GetService(typeof(StringParserService));
stringParserService.RegisterStringTagProvider(new MonoDevelop.Commands.SharpDevelopStringTagProvider());
PropertyService propertyService = (PropertyService)ServiceManager.GetService(typeof(PropertyService));
- //idleEventHandler = new EventHandler(ShowTipOfTheDay);
- //Application.Idle += idleEventHandler;
-
IProjectService projectService = (IProjectService)MonoDevelop.Core.Services.ServiceManager.GetService(typeof(IProjectService));
// load previous combine
@@ -195,12 +98,6 @@
WorkbenchSingleton.Workbench.RedrawAllComponents ();
((Gtk.Window)WorkbenchSingleton.Workbench).Present ();
- // Give Gtk time to display the workbench window before showing the TOTD.
- //while (Gtk.Application.EventsPending ())
- // Gtk.Application.RunIteration ();
-
- //ShowTipOfTheDay (null, null);
-
// finally run the workbench window ...
Gtk.Application.Run ();
}
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="001485.html">[Monodevelop-patches-list] r1878 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . CodeCompletion
</A></li>
<LI>Next message: <A HREF="001487.html">[Monodevelop-patches-list] r1880 - trunk/MonoDevelop/Core/src/Main/StartUp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#1486">[ date ]</a>
<a href="thread.html#1486">[ thread ]</a>
<a href="subject.html#1486">[ subject ]</a>
<a href="author.html#1486">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>