extension problems



Hello

Thanks to the new Add-In structure we can write extensions: very nice
but it does not seem to work for me.

I created a simple class file

using System;
using FSpot;
using FSpot.Extensions;

namespace Sgweb
{
	
	public class MyFirstExtension : ICommand
	{
		
		public void Run (object o, EventArgs e){
			Console.WriteLine("hallo mijn extension");
		}
	}
}

and created a xml file

<Addin namespace="FSpot"
       version="1.0.0.0"
       name="My Exporter"
       author="Marty MacFly"
       category="Tools">
	<Dependencies>
		<Addin id="Core" version="1.1"/>
	</Dependencies>
	<Extension path = "/FSpot/Menus/Tools">
		<Command id="MyTool" _label = "Start my tool" command_type =
"MyFirstExtension" />
	</Extension>
</Addin>

But the command does not appear. Here is the f-spot --debug output:

Initializing Mono.Addins
WARNING: The add-in 'FSpot.__MyFirstExtension,1.0.0.0' is trying to
extend '/FSpot/Menus/Tools', but there isn't any add-in defining this
extension point

Any help is appreciated!
Thanks
Stijn







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]