Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Unwanted camel case TRAC links in task editor
Unwanted camel case TRAC links in task editor [message #691031] Thu, 30 June 2011 15:10 Go to next message
Jan Mauersberger is currently offline Jan MauersbergerFriend
Messages: 120
Registered: July 2009
Senior Member
Hi,

when using the task editor to edit TRAC task descriptions, some wiki
hyperlinks are detected which aren't correct from my perspective. A
hyperlink is correctly detected when having lines as

this is a nice CamelCase link
---------


It is correctly not detected when having

this is a niceCamelCase link



But it is again detected when having

this is a nicECamelCase link
---------

So the regular expression that is used to detect the link in
TracHyperlinkUtil (pattern wikiPattern2) seems to not handle that case
correctly: the camel case word is proceeded with an upper case character
but the whole work is starting with a lower case character. I'm not good
in regular expression so I don't have any fix or patch.

Any help apreciated. Btw, I am using MyLyn 3.5

Jan
Re: Unwanted camel case TRAC links in task editor [message #691220 is a reply to message #691031] Fri, 01 July 2011 00:50 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
Hi Jan,

thanks for clear steps to reproduce! Please feel free to file a bug about
this problem: http://eclipse.org/mylyn/support/ . If you could attach a
failing test case that would be great!

Thanks,

Steffen


Jan Mauersberger wrote:

> Hi,
>
> when using the task editor to edit TRAC task descriptions, some wiki
> hyperlinks are detected which aren't correct from my perspective. A
> hyperlink is correctly detected when having lines as
>
> this is a nice CamelCase link
> ---------
>
>
> It is correctly not detected when having
>
> this is a niceCamelCase link
>
>
>
> But it is again detected when having
>
> this is a nicECamelCase link
> ---------
>
> So the regular expression that is used to detect the link in
> TracHyperlinkUtil (pattern wikiPattern2) seems to not handle that case
> correctly: the camel case word is proceeded with an upper case character
> but the whole work is starting with a lower case character. I'm not good
> in regular expression so I don't have any fix or patch.
>
> Any help apreciated. Btw, I am using MyLyn 3.5
>
> Jan

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Re: Unwanted camel case TRAC links in task editor [message #691304 is a reply to message #691220] Fri, 01 July 2011 06:53 Go to previous messageGo to next message
Jan Mauersberger is currently offline Jan MauersbergerFriend
Messages: 120
Registered: July 2009
Senior Member
Steffen,

could you give me a hint in which bundle/package I can find existing
similar test cases so I can write a new one?

Thanks Jan

> Hi Jan,
>
> thanks for clear steps to reproduce! Please feel free to file a bug about
> this problem: http://eclipse.org/mylyn/support/ . If you could attach a
> failing test case that would be great!
>
> Thanks,
>
> Steffen
>
>
> Jan Mauersberger wrote:
>
>> Hi,
>>
>> when using the task editor to edit TRAC task descriptions, some wiki
>> hyperlinks are detected which aren't correct from my perspective. A
>> hyperlink is correctly detected when having lines as
>>
>> this is a nice CamelCase link
>> ---------
>>
>>
>> It is correctly not detected when having
>>
>> this is a niceCamelCase link
>>
>>
>>
>> But it is again detected when having
>>
>> this is a nicECamelCase link
>> ---------
>>
>> So the regular expression that is used to detect the link in
>> TracHyperlinkUtil (pattern wikiPattern2) seems to not handle that case
>> correctly: the camel case word is proceeded with an upper case character
>> but the whole work is starting with a lower case character. I'm not good
>> in regular expression so I don't have any fix or patch.
>>
>> Any help apreciated. Btw, I am using MyLyn 3.5
>>
>> Jan
>
Re: Unwanted camel case TRAC links in task editor [message #691411 is a reply to message #691304] Fri, 01 July 2011 12:01 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
Take a look at org.eclipse.mylyn.trac.tests.ui.TracHyperlinkUtilTest. It has
a number of tests for the hyperlink detector. Thanks!

Steffen


Jan Mauersberger wrote:

> Steffen,
>
> could you give me a hint in which bundle/package I can find existing
> similar test cases so I can write a new one?
>
> Thanks Jan
>
>> Hi Jan,
>>
>> thanks for clear steps to reproduce! Please feel free to file a bug about
>> this problem: http://eclipse.org/mylyn/support/ . If you could attach a
>> failing test case that would be great!
>>
>> Thanks,
>>
>> Steffen
>>
>>
>> Jan Mauersberger wrote:
>>
>>> Hi,
>>>
>>> when using the task editor to edit TRAC task descriptions, some wiki
>>> hyperlinks are detected which aren't correct from my perspective. A
>>> hyperlink is correctly detected when having lines as
>>>
>>> this is a nice CamelCase link
>>> ---------
>>>
>>>
>>> It is correctly not detected when having
>>>
>>> this is a niceCamelCase link
>>>
>>>
>>>
>>> But it is again detected when having
>>>
>>> this is a nicECamelCase link
>>> ---------
>>>
>>> So the regular expression that is used to detect the link in
>>> TracHyperlinkUtil (pattern wikiPattern2) seems to not handle that case
>>> correctly: the camel case word is proceeded with an upper case character
>>> but the whole work is starting with a lower case character. I'm not good
>>> in regular expression so I don't have any fix or patch.
>>>
>>> Any help apreciated. Btw, I am using MyLyn 3.5
>>>
>>> Jan
>>

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Re: Unwanted camel case TRAC links in task editor [message #691434 is a reply to message #691411] Fri, 01 July 2011 12:58 Go to previous message
Jan Mauersberger is currently offline Jan MauersbergerFriend
Messages: 120
Registered: July 2009
Senior Member
New bug 350931 filed - please vote ;-)

Jan

> Take a look at org.eclipse.mylyn.trac.tests.ui.TracHyperlinkUtilTest. It has
> a number of tests for the hyperlink detector. Thanks!
Previous Topic:Package explorer broken with Working Sets as Top Level Elements
Next Topic:Internal links in mylyn wikitext
Goto Forum:
  


Current Time: Fri Apr 26 00:56:56 GMT 2024

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

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

Back to the top