New ErrorSource API
Submitted by Tuesday, 27 November, 2001 - 10:49
on
The changes are as follows:
That's all. After making these changes, your plugin should work with the new version of the ErrorList plugin, which should be available from plugin central by the time you read this.
- The EditBus plugin has been dissolved, and all classes have been moved to the ErrorList plugin. So you must remove any dependencies on "EditBusPlugin" from your plugin's property file.
- All ErrorSource API classes have been moved to the "errorlist" package; so you will need to add "import errorlist.*;" where necessary.
- To register an error source, you must now call:
ErrorSource.registerErrorSource(errorSource);
Instead of
EditBus.addToBus(errorSource);
EditBus.addToNamedList(ErrorSource.ERROR_SOURCES_LIST,errorSource);
- If your plugin also needs to unregister error sources on the fly, similar changes apply; there is a new
unregisterErrorSource()
method.
That's all. After making these changes, your plugin should work with the new version of the ErrorList plugin, which should be available from plugin central by the time you read this.