bug fixed. It is a modifier of CALLBACK_LOADSTRUCT that wasn't being sent.
now in JmolConstants (was in Viewer):
public final static int FILE_STATUS_NOT_LOADED = -1;
public final static int FILE_STATUS_ZAPPED = 0;
public final static int FILE_STATUS_MODELSET_CREATED = 3;
public final static int FILE_STATUS_MODELS_DELETED = 5;
On Sat, Nov 6, 2010 at 6:40 AM, Dr. Christoph Gille <
christoph.gi...@charite.de> wrote:
> In JmolConstants I find
> public final static int CALLBACK_LOADSTRUCT = 5
>
> But there is no call-back for molecules being deleted?
>
>
You sure? I see
setFileLoadStatus(FILE_STATUS_MODELS_DELETED, null, null, null, null);
in Viewer.deleteAtoms(...)
Motivation: If the user closes a molecule using the Jmol-console or the Jmol
> GUI, STRAP
> still thinks that the molecule is loaded.
>
> STRAP needs to know when molecules are deleted for properly closing the
> respective wrapper objects.
>
>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> 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
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers