Quoting Miguel <[EMAIL PROTECTED]>: > Egon wrote: > >> Sorry Egon, I did not understand this. What are you recommending? > > > > To extend the CDKEditBus API with the method: > > > > public Reader getChemFile(); > > > > So that a plugin can get a file on byte level too... This would have the > > advantage that the plugin can read information from the file which the > > Jmol reader cannot... e.g. chemical shifts... > > > > (Did that help?) > > Are you saying that the CDKEditBus should be able to get a Reader on the > same file that the JmolViewer is displaying? > Or that it should be able to open up an arbitrary file, but going through > the file opening mechanism that is in the viewer? The first... > Once CDK has the file Reader, will it be difficult for CDK to establish > the relationship between the lines of the file and the data structures > within Jmol? That would be difficult... I've been thinking about adding some API that would allow script commands send to the application by means of the CDKEditBus API... and given a script language, well Rasmol only for now :), it should be possible to relate lines on the plugin side with stuff in the Jmol data structure... but not directly... Unless... at some point we used the CDK model adapter... if only we could dynamically switch between the Jmol native model adapter and the CDK one... that would open a set of new possibilities... But, for now, it might be best to just add scripting possibilities to CDKEditBus... JChemPaint does not support any scripting yet, but this is something I would like to add at some point... but it would likely not resemble Rasmol script... Egon
------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
