[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-2075) SWT error when executing the testJBIDE1105 test

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue Apr 15 21:42:04 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBIDE-2075?page=all ]

Snjezana Peco updated JBIDE-2075:
---------------------------------

    Attachment: JBIDE-2075.txt

> SWT error when executing the testJBIDE1105 test
> -----------------------------------------------
>
>                 Key: JBIDE-2075
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-2075
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 2.1.0.beta1
>         Environment: MS Windows
>            Reporter: Snjezana Peco
>         Assigned To: Snjezana Peco
>            Priority: Minor
>             Fix For: 2.1.0.cr1
>
>         Attachments: JBIDE-2075.txt
>
>
> This issue happens only on Windows because Windows has multichar line delimiter ("\r\n").
> The following code is problematic:
> The JBIDE1105Test.java class, line 74
> styledText.setCaretOffset(offset - " Test ".length());
> If a character offset occurs between \r and \n, Eclipse will throw the attached exception.
> The following is the correct line:
> styledText.setCaretOffset(offset - " Test ".length() - delimiter.length());
> Max, will I commit these changes?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list