PropertyChange mols0 ????

User 818520b6b8

13-12-2005 14:03:39

Hi,





I just upgraded my application from JChem 3.0.9 to 3.1.3, and found that it's not working properly.





One of the odd things I found is that the viewer property "mols0" has just disappeared !!!





I had a piece of java code that detected if the molecule has been changed from the previous one, and then performed some actions. But now, the property name is "ancestor" instead of "mols0", and what is worse, it is fired on different situations than the other one.





Following is the code which is not working now:








private void viewer_propertyChange(PropertyChangeEvent e)


{


String name = e.getPropertyName();


if(name.equals("mols0"))


{


// do something


}


}





Any solutions for this problem?





Thanks.

ChemAxon 7c2d26e5cf

14-12-2005 15:07:51

Thanks for the bug report. We will fix it.

User 818520b6b8

14-12-2005 15:15:41

What version will you fix it for?





I need it within two weeks. Is that any possible at all?

ChemAxon 7c2d26e5cf

14-12-2005 16:42:55

OK, I set the priority of this task to "high". When I am ready, I will send you a pre-release from Marvin 4.0.4.

ChemAxon 7c2d26e5cf

20-12-2005 18:11:08

We have fixed the PropertyChangeEvent bug.


I will send you a pre-release tomorrow.


By the way, the property name was changed (mol0 -> doc0).

User 818520b6b8

21-12-2005 07:37:09

Thank you very much !!!!





Waiting for the update .....

ChemAxon 7c2d26e5cf

21-12-2005 16:28:16

The new pre-release is available:


http://www.chemaxon.com/test/marvin