Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text shows in StyledText with java.lang.IllegalArgumentException
Text shows in StyledText with java.lang.IllegalArgumentException [message #480644] Tue, 18 August 2009 05:40 Go to next message
Cheney is currently offline CheneyFriend
Messages: 9
Registered: July 2009
Junior Member
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
Re: Text shows in StyledText with java.lang.IllegalArgumentException [message #481437 is a reply to message #480644] Fri, 21 August 2009 01:42 Go to previous messageGo to next message
Cheney is currently offline CheneyFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

Noone? Ok, maybe I wasn't clear enough.But dose anybody knows some
information about the problem? Please help!!!


Cheney wrote:

> 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
Re: Text shows in StyledText with java.lang.IllegalArgumentException [message #481661 is a reply to message #481437] Sat, 22 August 2009 12:42 Go to previous messageGo to next message
Remy Suen is currently offline Remy SuenFriend
Messages: 462
Registered: July 2009
Senior Member
On Fri, 21 Aug 2009 09:51:59 +0800, Cheney wrote:
> Noone? Ok, maybe I wasn't clear enough.

Providing the exact code that will reproduce the problem will probably
get you better mileage for responses.
Re: Text shows in StyledText with java.lang.IllegalArgumentException [message #482151 is a reply to message #481661] Tue, 25 August 2009 14:18 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
It looks like a StyledText bug, so please log a report with swt at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT
and provide a snippet (template:
http://www.eclipse.org/swt/faq.php#whatisasnippet ) that shows the problem
happening.

Thanks!
Grant


"Remy Suen" <remysuen@ca.ibm.com> wrote in message
news:h6op44$1ph$4@build.eclipse.org...
> On Fri, 21 Aug 2009 09:51:59 +0800, Cheney wrote:
> > Noone? Ok, maybe I wasn't clear enough.
>
> Providing the exact code that will reproduce the problem will probably
> get you better mileage for responses.
Previous Topic:CDateTime invalid time entry
Next Topic:SWT event returns wrong coordinates in bidi mode
Goto Forum:
  


Current Time: Sat Aug 24 06:38:12 GMT 2019

Powered by FUDForum. Page generated in 0.02186 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top