Hello EveryOne,
Currently, I am testing eclipse editors features that we developed here to open different kind of XML files in different formats.
So, I am trying to open xml file by clicking on file in Project Explorer View, but it's giving some java.lang.OutOfMemoryError kind of exception.
Error is as below :
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "MainThread"
BUT, Text files are opening even if they have same content as xml files.
It's not opening simplest xml file also.
Robot Code I have written is as below :
Set Focus on Project Explorer View ## --) Function I wrote to focus on Project Explorer E View, It opens from Menu Windows -> Show View -> Project Explorer.
Sleep 1s
Find Tree
Find Tree TreeItem ProjectNm
Select Tree Item
Expand Tree Item
Select Tree Item
Sleep 2s
Find Tree Item Node xmlFile.xml
Select Tree Item
Sleep 1s
Double Click Tree Item >>> In this way also I tried, but same error --->)) #Find Context Menu Open With
#Find Sub Menu XML Editor
#Click Menu
Sleep 10s
Find Active Eclipse Editor
${Editor_Active} Is Editor Active
${Critical_report_xml} Get Eclipse Editor Title
Log To Console ${Critical_report_xml}
Kindly, help me to resolve this.
Thanks & Regards,
Ganesh.