templates_issue

advertisement
sketcher = new chemaxon.marvin.beans.MSketchPane();
sketcher.setVisible(false);
sketcher.setParams("menuconfig=com/company/util/files/customization.xml");
sketcher.setParams("templateToolbarCustomizable=false");
sketcher.setParams("statusBar=false");
sketcher.setParams("tmpls0=:Generic:com/company/util/files/marvin.mytemplates"
);
//hide menu bar of marvin sketch
sketcher.getJMenuBar().setVisible(false);
sketcher.setParams("atommappingvisible=false");
Exception in thread "Thread-20" java.lang.IndexOutOfBoundsException: Index: 21, Size:
21
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplatesSet(TemplateLibrary.ja
va:234)
at
chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplates(TemplateLibrary.java:
242)
at
chemaxon.marvin.sketch.swing.templates.TemplateHandler.getMoleculesWithAbbreviations(
TemplateHandler.java:717)
at chemaxon.marvin.sketch.swing.SketchPanel$9.run(SketchPanel.java:3626)
Exception in thread "Thread-17" java.lang.IndexOutOfBoundsException: Index: 21, Size:
21
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplatesSet(TemplateLibrary.ja
va:234)
at
chemaxon.marvin.sketch.templates.TemplateLibrary.getMyTemplates(TemplateLibrary.java:
242)
at
chemaxon.marvin.sketch.swing.templates.TemplateHandler.getMoleculesWithAbbreviations(
TemplateHandler.java:717)
at chemaxon.marvin.sketch.swing.SketchPanel$9.run(SketchPanel.java:3626)
molecule changed
Marvin.mytemplates content
<?xml version="1.0" encoding="windows-1252"?><cml xmlns="http://www.chemaxon.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.chemaxon.com/marvin/help/formats/schema/mrvSchema_6_2_0.xsd
" version="ChemAxon file format v6.2, generated by v6.2.2">
<MDocument><MChemicalStruct><molecule molID="m1"><propertyList><property
dictRef="sgroupState"
title="sgroupState"><scalar>expand</scalar></property></propertyList><atomArray atomID="a1 a2 a3"
elementType="C C C" x2="4.894999980926514 5.664999980926513 4.124999980926514" y2="3.521843251827127 -4.855522373655163 -4.8555223736551625"></atomArray><bondArray><bond
id="b1" atomRefs2="a1 a2" order="1"></bond><bond id="b2" atomRefs2="a1 a3"
order="1"></bond><bond id="b3" atomRefs2="a2 a3"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m2"><propertyList><property
dictRef="sgroupState"
title="sgroupState"><scalar>expand</scalar></property></propertyList><atomArray atomID="a1 a2 a3
a4" elementType="C C C C" x2="-3.9049999713897705 -3.9049999713897705 -2.3649999713897705 2.3649999713897705" y2="-3.684999942779541 -5.224999942779541 -3.684999942779541 5.224999942779541"></atomArray><bondArray><bond id="b1" atomRefs2="a1 a2"
order="1"></bond><bond id="b2" atomRefs2="a1 a3" order="1"></bond><bond id="b3"
atomRefs2="a3 a4" order="1"></bond><bond id="b4" atomRefs2="a2 a4"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m3"><atomArray atomID="a1 a2 a3 a4 a5"
elementType="C C C C C" x2="-2.9149999618530273 -4.160866290870054 -3.6850038734828345 2.14499605022322 -1.6691336328359991" y2="-16.29000812669217 -17.19522472520417 -
18.659772165124064 -18.659772165124064 -17.19522472520417"></atomArray><bondArray><bond
id="b1" atomRefs2="a1 a2" order="1"></bond><bond id="b2" atomRefs2="a2 a3"
order="1"></bond><bond id="b3" atomRefs2="a3 a4" order="1"></bond><bond id="b4"
atomRefs2="a4 a5" order="1"></bond><bond id="b5" atomRefs2="a1 a5"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m4"><atomArray atomID="a1 a2 a3 a4 a5 a6"
elementType="C C C C C C" x2="1.7050000429153442 0.37133070186708594 0.37133070186708594
1.7050000429153442 3.0386693839636028 3.0386693839636028" y2="-15.784966881821372 16.55498382238041 -18.095017703498495 -18.865034644057534 -18.095017703498495 16.55498382238041"></atomArray><bondArray><bond id="b1" atomRefs2="a1 a2"
order="1"></bond><bond id="b2" atomRefs2="a2 a3" order="1"></bond><bond id="b3"
atomRefs2="a3 a4" order="1"></bond><bond id="b4" atomRefs2="a4 a5" order="1"></bond><bond
id="b5" atomRefs2="a5 a6" order="1"></bond><bond id="b6" atomRefs2="a1 a6"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m5"><propertyList><property
dictRef="sgroupState"
title="sgroupState"><scalar>expand</scalar></property></propertyList><atomArray atomID="a1 a2 a3
a4 a5 a6 a7" elementType="C C C C C C C" x2="-41.01750544596354 -40.67478544596354 41.63499877929687 -43.17499877929688 -44.13521211263021 -43.79249211263021 42.404998779296875" y2="4.571400152587891 3.0702268192545574 1.8660401525878907
1.8660401525878907 3.0702268192545574 4.571400152587891
5.239666819254557"></atomArray><bondArray><bond id="b1" atomRefs2="a2 a1"
order="1"></bond><bond id="b2" atomRefs2="a3 a2" order="1"></bond><bond id="b3"
atomRefs2="a4 a3" order="1"></bond><bond id="b4" atomRefs2="a5 a4" order="1"></bond><bond
id="b5" atomRefs2="a6 a5" order="1"></bond><bond id="b6" atomRefs2="a1 a7"
order="1"></bond><bond id="b7" atomRefs2="a7 a6"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m6"><propertyList><property
dictRef="sgroupState"
title="sgroupState"><scalar>expand</scalar></property></propertyList><atomArray atomID="a1 a2 a3
a4 a5 a6 a7 a8" elementType="C C C C C C C C" x2="-4.787569866485596 -6.019756533152262 6.201009866485595 -5.995489866485595 -7.340983199818929 -7.427596533152262 7.544076533152262 -8.803516533152262" y2="2.6767000095367433 5.201740009536744
3.57400667620341 2.84656667620341 5.733553342870077 2.6901400095367434
4.0417933428700765 3.1555000095367434"></atomArray><bondArray><bond id="b1" atomRefs2="a3
a1" order="1"></bond><bond id="b2" atomRefs2="a3 a2" order="1"></bond><bond id="b3"
atomRefs2="a4 a1" order="1"></bond><bond id="b4" atomRefs2="a5 a2" order="1"></bond><bond
id="b5" atomRefs2="a6 a3" order="1"></bond><bond id="b6" atomRefs2="a4 a7"
order="1"></bond><bond id="b7" atomRefs2="a7 a5" order="1"></bond><bond id="b8"
atomRefs2="a8 a6" order="1"></bond><bond id="b9" atomRefs2="a8 a7"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
<MDocument><MChemicalStruct><molecule molID="m7"><propertyList><property
dictRef="sgroupState"
title="sgroupState"><scalar>expand</scalar></property></propertyList><atomArray atomID="a1 a2 a3
a4 a5 a6 a7 a8 a9" elementType="C C C C N C C C C" x2="-9.668385941874186 -11.001932608540853 11.001932608540853 -9.668385941874186 -8.334652608540853 -6.870065941874186 8.334652608540853 -6.870065941874186 -5.964919275207519" y2="4.564979354626691
3.7949793546266903 2.2549793546266907 1.4849793546266907 3.7949793546266903
4.270979354626691 2.2549793546266907 1.7791660212933573
3.0249793546266908"></atomArray><bondArray><bond id="b1" atomRefs2="a1 a2"
order="2"></bond><bond id="b2" atomRefs2="a2 a3" order="1"></bond><bond id="b3"
atomRefs2="a3 a4" order="2"></bond><bond id="b4" atomRefs2="a1 a5" order="1"></bond><bond
id="b5" atomRefs2="a6 a5" order="1"></bond><bond id="b6" atomRefs2="a4 a7"
order="1"></bond><bond id="b7" atomRefs2="a5 a7" order="1"></bond><bond id="b8"
atomRefs2="a7 a8" order="2"></bond><bond id="b9" atomRefs2="a6 a9" order="2"></bond><bond
id="b10" atomRefs2="a8 a9"
order="1"></bond></bondArray></molecule></MChemicalStruct></MDocument>
</cml>
Download