I see, so you need the intermediate stage, not the actual model. one problem
was that "openClientFile" was a misnomer -- clearly the actual file by then
is long closed. Where are you getting the AtomSetCollection from? Also, do
you have some reason to check the AtomSetCollection first? Part of the
reason to change this was to make it easier:

    String strError = viewer.openFile("
http://chemapps.stolaf.edu/jmol/docs/examples-11/data/caffeine.xyz";);
    //viewer.openStringInline(strXyzHOH);
    if (strError == null)
      viewer.evalString(strScript);
    else
      Logger.error(strError);

so that openFile method returns your error string or null -- you never see
the intermediate AtomSetCollection.

Bob

On Fri, Jan 14, 2011 at 9:13 AM, Egon Willighagen <
egon.willigha...@gmail.com> wrote:

> Bob,
>
> the previous Jmol version allows code like this:
>
> if (obj instanceof AtomSetCollection) {
>            viewer = (Viewer)jmolViewer;
>            viewer.openClientFile(string, string2, obj);
>        }
>
> In the current stable version the openClienFile() method is no longer
> present, and I do not see a clear replacement...
>
> What can you suggest to replace it with?
>
> Egon
>
> --
> Dr E.L. Willighagen
> Postdoctoral Researcher
> Institutet för miljömedicin
> Karolinska Institutet
> Homepage: http://egonw.github.com/
> LinkedIn: http://se.linkedin.com/in/egonw
> Blog: http://chem-bla-ics.blogspot.com/
> PubList: http://www.citeulike.org/user/egonw/tag/papers
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to