Hi there
The current cvs version has some important changes in plugins and
configuration thereof:
You must not instantiate Plugins yourself. Always call the setXXXPlugin
methods on the various platforms.
If you happen to create one, it will crash immediatly after you try to
use the platform.
Configuration:
Parameters of plugins are now saved in their "plugin.xml" within the
following structure:
<config>
(<configelement name="NameOfTheParameter" type="TypeOfTheParameter"/>)*
</config>
where (...)* means "as many as you like". The type attribute must be a
valid java Object.
Note: These config settings are checked runtime and will throw Errors if
something is going wrong.
If you're writing your own plugin, you may not overwrite the
"setParameter" method as was done before. Instead you need to register a
ParameterChangeListener with your own plugin to receive parameter
changes. Check an already implemented plugin like InputFile for an example.
Good day - and if I forgot something/made an error - feel free to comment.
-
Dennis
|