Send to Printer

BottomFeeder

Changed the Bf Plugin API

February 1, 2003 17:15:38.880

After talking to Michael Lucas-Smith on the IRC, we decided that my simple plugin interface was - too simple. The menu picks generated were the class name, and that really wasn't what anyone would want. So I changed the API to be more flexible. Now, plugin parcels should have a postload action that uses this kind of code:

#{RSS.RSSFeedViewer} ifDefinedDo: [[:cls |
	cls
		registerPluginClass: SomeClass
		startupMessage: startupMethodName
		label: labelString].

This makes it a bit easier for anyone wanting to add a plugin.

 Share Tweet This