Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338614

Summary: Space appended to receiverName on construction sites
Product: z_Archived Reporter: Stefan Henss <stefan.henss>
Component: RecommendersAssignee: Marcel Bruch <marcel.bruch>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Example of templates completion w/ build 249 none

Description Stefan Henss CLA 2011-03-01 21:27:44 EST
When calling

Button b<^Space>

the context will give 'b ' as receiverName.
Comment 1 Marcel Bruch CLA 2011-03-02 02:33:21 EST
Created attachment 190109 [details]
Example of templates completion w/ build 249

I tried to reproduce bug couldn't. This screenshot shows my setup and what it proposes. maybe you could submit a test case to the templates test plug-in?
Comment 2 Marcel Bruch CLA 2011-03-02 04:47:06 EST
added:


  private void setReceiverName(final char[] name) {
        String s = String.valueOf(name);
        setReceiverName(s);
    }

    private void setReceiverName(final String name) {
        receiverName = StringUtils.deleteWhitespace(name);
    }

to IntelligentCompletionContext. Whitespaces in receiver names should be nuked now.
Comment 3 Marcel Bruch CLA 2011-03-02 05:23:41 EST
could you remove your code that chops the whitespace but write a test that ensures that reveceiverNames do not end with a whitespace?
Comment 4 Marcel Bruch CLA 2012-02-02 01:41:37 EST
Closing this issue. Please give latest dev build (v0.5) a try:

http://download.eclipse.org/recommenders/updates/dev/e37/
http://download.eclipse.org/recommenders/updates/dev/e42/
Comment 5 Marcel Bruch CLA 2012-02-02 01:41:55 EST
Closing this issue. Please give latest dev build (v0.5) a try:

http://download.eclipse.org/recommenders/updates/dev/e37/
http://download.eclipse.org/recommenders/updates/dev/e42/