On Sunday 23 May 2004 01:41, Miguel wrote: > > A RSS feed... see below. > > OK, I finally figured out what the problem is with openStringInline.
Excellent! Thanx very much... > A couple of months ago I tried to introduce multi-threading into the File > IO. I say *tried* because I was not able to get it to work successfully. > And the code in the File Manager is now so ugly that I don't want to go > back and work on it anymore :-( > > As a result of this work, calling openFile does not actually read the > entire file ... it just starts the process. > > In order to complete the process one needs to call > JmolViewer.getOpenFileError(), which returns null (indicating success) or > an error message. This second step is necessary in order to complete the > openFile process. > > And, this applies to openStringInline too ... but I forgot all about that. > > For now, I have modifed the implementation of openStringInline so that it > explicitly calls getOpenFileError(). But the error value is not returned > ... because I can't change the plugin source. > > The good news is ... it works now. > > Separately, it seems to me that you do not want to pass me a string. > Instead, you want to pass me an InputStream (or a Reader?). We should add > an openInputStream method. That will work much better when the feed is > actually coming across the network because the ModelAdapter can be parsing > the file while it is still coming across the wire. Yes, I was thinking about that too yesterday... If you think so too, I'll fix the CDKEditBus API... Egon ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
