From: E.L. W. (Egon) <eg...@sc...> - 2003-09-21 17:06:57
|
Hi all, this weekend I've ported the plugin architecture I had introduced into Jmol last week (or so...) to CDK... This means, that Jmol's RSS plugin is now actually a CDK plugin, and JChemPaint 1.9.x can use it too! It did not require that much change, but it is an important change: in order to have Jmol and JChemPaint cooperate with CDK plugins, they need to implement the new cdk.applications.plugin.CDKEditBus interface... The idea behind this interface is (hopefully, but not likele ;) similar to the EditBus in jEdit... i.e. it should provide a clear API to the datamodel used in JCP/Jmol... The API is at this moment very ad hoc, and stupid, and only aimed to get things done... But, this API should be a full API to exchange changes to the internal data structures of the application in which the CDK plugin is plugged in... Anyway, the only two methods defined in the API right now, are showChemFile(ChemFile) and showChemModel(ChemModel)... Another thing is that Jmol's RSSViewer plugin is no longer just a Jmol plugin... I'll sort this out next week... should it go into a module in CDK? I guess so... Any objections against it? A full intro on how to work with CDK plugins will follow... Egon -- PhD Molecular Representation in Chemometrics Laboratory of Analytical Chemistry http://www-cac.sci.kun.nl/people/egonw.html |