Not able to use insert symbols

Hi, Whenever I try to insert a symbol using the symbol toolbar, I get the following error which I am not able to debug: System ID: /Users/xxxxxxx/.../dev_guides/ajax/sforce_api_ajax_debug_shell.xml Severity: error Description: :Paste failed due to: Index: 0, Size: 0 Could someone point me in the right direction on what is happening here? I did create a new class by extending the AuthorExtensionStateListener and implemented the inserText and inserFragment methods which work fine. Thanks in advance, Nathan

Hi Nathan, An AuthorDocumentFragment is a very low level API and the insert symbol actions also go though it (from what I've investigated, through insertFragment()). Perhaps the code you've written in insertFragment() needs to make some additional checks? Is there any exception stack trace presented in the console? If not, perhaps you can surround your code with something like this to see if an exception is generated there: public void insertFragment(AuthorDocumentFilterBypass filterBypass, int offset, AuthorDocumentFragment frag) { try { // The code ..... } catch (Throwable t) { t.printStackTrace() } } If you start Oxygen from the command line scripts (oxygen.bat, oxygen.sh etc) you should be able to see what exception is to blame. Another think you could do to see if your customization is to blame is to disable your AuthorExtensionStateListener and see if the issue still happens. If the issue still happens then it's probably an Oxygen issue. Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 12-May-14 10:02 AM, Nathan wrote:
Hi, Whenever I try to insert a symbol using the symbol toolbar, I get the following error which I am not able to debug:
System ID: /Users/xxxxxxx/.../dev_guides/ajax/sforce_api_ajax_debug_shell.xml Severity: error Description: :Paste failed due to: Index: 0, Size: 0
Could someone point me in the right direction on what is happening here? I did create a new class by extending the AuthorExtensionStateListener and implemented the inserText and inserFragment methods which work fine.
Thanks in advance, Nathan
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
participants (2)
-
Alex Jitianu
-
Nathan