Sebastian Klein wrote:
So either the common protocol must be included in Josm core or
another possible solution would be to use reflection.

How about adding the basic functionality into core? Providing the listener and accepting commands.

By default it will have no commands included.

It provides a capabilities command that reports back the supported commands and their protocol version.

Plugins can register new commands with the core similar than they would register other functionality (like shortcuts and such).

So the core will know what commands are available and which plugin handles them. It can also reject registrations of commands that already exist. It can provide a single configuration dialog where the plugins can append their plugin-specific settings.

Comments?

Stephan

_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to