Technical Support Forum Index
Technical Support Forum
Access ChemAxon scientists and developers here. For registration and login issues contact website support.

Support Ticket System is replacing forum

This forum was converted into a searchable archive. You cannot add posts here any more. For support please use our new Ticket System.

Create your first ticket
JChem 5.6 go 6.1 Upgrade (MSketchPane::setPiece)
To watch this topic for replies  Register (enables digests) or give email address:
This topic is locked: you cannot edit posts or make replies.
Display posts from previous:   
    View previous topic :: View next topic    
Author Message
Arthur

Joined: 09 Apr 2013
Posts: 21

View user's profile

Back to top
Link to postPosted: Sat Oct 19, 2013 6:58 pmPost subject: JChem 5.6 go 6.1 Upgrade (MSketchPane::setPiece) Reply with quote

So I have an issue with my code that works on JChem 5.6 but not 6.1.  It deals with MSketchPane::setPiece().  What exactly does it do?  The API documentation seems sparse as to what it does.   We previously have this code snippet:

molEditor_.setPiece(_rgrp); 

where molEditor is a MSketchPane and where _rgrp is equal to:

r-group Marvin 11290416502D 1 0 0 0 0 0 999 V2000 0.0000 0.0000 0.0000 R# 0 0 0 0 0 0 0 0 0 0 0 0 M RGP 1 1 2 M END

 

We had this hooked into a java swing MouseAdapter where the mouse cursor turns into R1 which then allows the user to put on the structure.

With the upgrade to 6.1, the same code now replaces the entire structure (see attached picture)... similar to setMol().  What method should I be using now?

 




 Filename: Screen Shot 2013-10-19 at 1.52.34 PM.png    Filesize: 29.6 KB    Viewed: 4929 Time(s)
 Description:  
Screen Shot 2013-10-19 at 1.52.34 PM.png
Arthur

Joined: 09 Apr 2013
Posts: 21

View user's profile

Back to top
Link to postPosted: Mon Oct 21, 2013 10:45 pmPost subject: Reply with quote

Should I provide more information for the above question?  I'm not sure if I'm being clear as to what I'm trying to do.

tfazekas
ChemAxon personnel
Joined: 11 Oct 2012
Posts: 98

View user's profile

Back to top
Link to postPosted: Tue Oct 22, 2013 3:08 pmPost subject: Reply with quote

Hello Kongar,

I've looked into your issue and found out that it is indeed a bug, setPiece(mol) should not replace the molecule, and the bug has been in since version 6.0.

I put a ticket into our bug tracking system, and we will inform you when the bug has been fixed.

 

Tamás Fazekas-Vígh

Arthur

Joined: 09 Apr 2013
Posts: 21

View user's profile

Back to top
Link to postPosted: Tue Oct 22, 2013 3:21 pmPost subject: Reply with quote

Thanks for looking into this, Tamas.  Is there a workaround that I can use?

tfazekas
ChemAxon personnel
Joined: 11 Oct 2012
Posts: 98

View user's profile

Back to top
Link to postPosted: Tue Oct 22, 2013 3:35 pmPost subject: Reply with quote

Sadly, on the public api there is no other option with the same behavior.

Arthur

Joined: 09 Apr 2013
Posts: 21

View user's profile

Back to top
Link to postPosted: Tue Oct 22, 2013 3:44 pmPost subject: Reply with quote

Is there a private API, then?  Maybe I can use Java Reflection to force private methods public.  A hack will work fine at this point.  

We delayed upgrading from 5.6 to 5.12, because we found a bug during the upgrade, and we waited for the fix to show up in 6.1.   Now there is another bug that may block us from upgrading yet again...

Eufrozina
ChemAxon personnel
Joined: 13 Dec 2010
Posts: 843

View user's profile

Back to top
Link to postPosted: Thu Nov 14, 2013 4:29 pmPost subject: Reply with quote

I am happy to inform you that the fix was included in Marvin version 6.1.3 ( It can be downloaded from our website. )

Best Regards,

Efi

This topic is locked: you cannot edit posts or make replies.
Page 1 of 1


To watch this topic for replies   Register (enables digests) or give email address  
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum