ChemAxon fa971619eb
17-03-2006 12:42:57
I need to know if a molecule has changed. I open it in MarvinSketch as an editor and when I get if back I need to know whether the user has made any changes.
I don't see any Molecule.equals(Object o)
method. Is there anyting I can use for this? e.g.
Molecule origMol = ...;
Molecule newMol = origMol.clone();
MViewPane mvp = new MViewPane();
mvp.setEditable(2);
mvp.setM(0, newMol);
// the user possibly edits the mol
Molecule editedMol = mvp.getM(0);
if (editedMol.equals(origMol)) {
// mol changed so I need to do something
}
Thanks
Tim
I don't see any Molecule.equals(Object o)
method. Is there anyting I can use for this? e.g.
Molecule origMol = ...;
Molecule newMol = origMol.clone();
MViewPane mvp = new MViewPane();
mvp.setEditable(2);
mvp.setM(0, newMol);
// the user possibly edits the mol
Molecule editedMol = mvp.getM(0);
if (editedMol.equals(origMol)) {
// mol changed so I need to do something
}
Thanks
Tim