[Monodevelop-patches-list] r2477 - trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib
Lluis Sanchez <lluis@ximian.com>
lluis at mono-cvs.ximian.com
Mon Apr 25 16:36:47 EDT 2005
Author: lluis
Date: 2005-04-25 16:36:47 -0400 (Mon, 25 Apr 2005)
New Revision: 2477
Modified:
trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib-Commands.cs
trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib.addin.xml
Log:
2005-04-25 Lluis Sanchez Gual <lluis at novell.com>
* prj2make-sharp-lib.addin.xml:
* prj2make-sharp-lib-Commands.cs: Use the new syntax for defining
commands and implementing commands.
Modified: trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/ChangeLog 2005-04-25 20:36:07 UTC (rev 2476)
+++ trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/ChangeLog 2005-04-25 20:36:47 UTC (rev 2477)
@@ -1,3 +1,9 @@
+2005-04-25 Lluis Sanchez Gual <lluis at novell.com>
+
+ * prj2make-sharp-lib.addin.xml:
+ * prj2make-sharp-lib-Commands.cs: Use the new syntax for defining
+ commands and implementing commands.
+
2005-04-17 John Luke <john.luke at gmail.com>
* Makefile.am: fix distcheck
Modified: trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib-Commands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib-Commands.cs 2005-04-25 20:36:07 UTC (rev 2476)
+++ trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib-Commands.cs 2005-04-25 20:36:47 UTC (rev 2477)
@@ -8,14 +8,20 @@
using MonoDevelop.Prj2Make;
using MonoDevelop.Prj2Make.Schema.Prjx;
using MonoDevelop.Prj2Make.Schema.Csproj;
+using MonoDevelop.Commands;
-namespace MonoDevelop.Commands
+namespace MonoDevelop.Prj2Make
{
- public class ImportPrj : AbstractMenuCommand
+ public enum Commands
{
+ ImportSolution
+ }
+
+ public class ImportPrj : CommandHandler
+ {
static PropertyService PropertyService = (PropertyService)ServiceManager.GetService (typeof (PropertyService));
- public override void Run()
+ protected override void Run()
{
using (FileSelector fs = new FileSelector (GettextCatalog.GetString ("File to Open"))) {
bool conversionSuccessfull = false;
Modified: trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib.addin.xml
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib.addin.xml 2005-04-25 20:36:07 UTC (rev 2476)
+++ trunk/MonoDevelop/Core/src/AddIns/prj2make-sharp-lib/prj2make-sharp-lib.addin.xml 2005-04-25 20:36:47 UTC (rev 2477)
@@ -8,14 +8,19 @@
<Runtime>
<Import assembly="prj2make-sharp-lib.dll"/>
</Runtime>
+
+ <Extension path = "/SharpDevelop/Commands">
+ <Command id = "MonoDevelop.Prj2Make.Commands.ImportSolution"
+ _label = "_Import Visual Studio .NET Project"
+ defaultHandler = "MonoDevelop.Prj2Make.ImportPrj"
+ description = "Imports solutions created with MS Visual Studio" />
+ </Extension>
+
<Extension path="/SharpDevelop/Workbench/MainMenu/File">
- <MenuItem id = "ImportSeparator" insertafter="SaveAll" _label = "-" />
- <MenuItem id = "ImportSolution"
+ <SeparatorItem id = "ImportSeparator" insertafter="MonoDevelop.Commands.FileCommands.ReloadFile" />
+ <CommandItem id = "MonoDevelop.Prj2Make.Commands.ImportSolution"
insertafter="ImportSeparator"
- insertbefore="RecentSeparator"
- _label = "_Import Visual Studio .NET Project"
- description = "Imports solutions created with MS Visual Studio"
- class = "MonoDevelop.Commands.ImportPrj"/>
+ insertbefore="RecentSeparator" />
</Extension>
-</AddIn >
+</AddIn>
More information about the Monodevelop-patches-list
mailing list