Text shows in StyledText with java.lang.IllegalArgumentException [message #480644] |
Tue, 18 August 2009 01:40  |
Eclipse User |
|
|
|
Hi All,
I put some text that with some special characters ( such as line
separator-\u2028 or paragraph separator -\u2029) in StyledText, and then I
click down the mouse in StyledText to trigger the event that coputering
the offset at the specified x location in the specified line. As a result,
my application has deadlocked, and I saw the exception in console:
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.graphics.TextLayout.getLineIndex(Unknown Source)
at org.eclipse.swt.custom.StyledText.getOffsetAtPoint(Unknown Source)
at org.eclipse.swt.custom.StyledText.getOffsetAtPoint(Unknown Source)
at org.eclipse.swt.custom.StyledText.doMouseLocationChange(Unkn own Source)
at org.eclipse.swt.custom.StyledText.handleMouseDown(Unknown Source)
at org.eclipse.swt.custom.StyledText$7.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at net.heartsome.xlfedit.view.XLFEditMain.show(XLFEditMain.java :7754)
at net.heartsome.xlfedit.view.XLFEditMain.main(XLFEditMain.java :7769)
can anybody give me some advise to solve the problem?
Best Regards,
Cheney
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04982 seconds