Bug 189121 - [content assist][templates] Template expansion failes when option 'Completion Overwrites' is set
Summary: [content assist][templates] Template expansion failes when option 'Completion...
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-05-25 07:48 EDT by Ulli Hafner CLA
Modified: 2007-06-22 10:04 EDT (History)
0 users

See Also:


Attachments
Selection of instanceof template (20.29 KB, image/png)
2007-05-25 07:49 EDT, Ulli Hafner CLA
no flags Details
Activating the content assist (19.77 KB, image/png)
2007-05-25 07:50 EDT, Ulli Hafner CLA
no flags Details
Selecting the type by pressing return (8.27 KB, image/png)
2007-05-25 07:51 EDT, Ulli Hafner CLA
no flags Details
Preferences Dialog (28.42 KB, image/png)
2007-05-25 07:51 EDT, Ulli Hafner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulli Hafner CLA 2007-05-25 07:48:32 EDT
Build ID: I20070517-1700 (Clean Install on a fresh workspace and no plugins)

Steps To Reproduce:
1. Activate preferences option Java Editor->Content Assist->Completion Overwrites
2. Crate a new Class and new method.
3. Use instance_of template proposal
4. When selecting a type (2nd parameter) type Acti and use the context assistant (CTRL Space).
5. Select ActionBase
6. Press Return
-> Linked Mode Selection is gone and brace has been overwritten. (Sometimes the brace is not overwritte, then only the linked mode selection is gone.)
This never happens when using 'Completion Inserts' Mode.

More information:
See attached Screenshots.
Comment 1 Ulli Hafner CLA 2007-05-25 07:49:40 EDT
Created attachment 68754 [details]
Selection of instanceof template
Comment 2 Ulli Hafner CLA 2007-05-25 07:50:36 EDT
Created attachment 68755 [details]
Activating the content assist
Comment 3 Ulli Hafner CLA 2007-05-25 07:51:17 EDT
Created attachment 68756 [details]
Selecting the type by pressing return
Comment 4 Ulli Hafner CLA 2007-05-25 07:51:42 EDT
Created attachment 68757 [details]
Preferences Dialog
Comment 5 Dani Megert CLA 2007-05-25 09:39:09 EDT
I'm sorry but I can't reproduce using I20070525-0010 plain Eclipse SDK (i.e. no other plug-ins installed). Do you have other plug-ins installed?
Comment 6 Ulli Hafner CLA 2007-05-30 03:17:03 EDT
Typically, this bug occurs 90% of the time I use this template (irregularly) in my Eclipse instance with several plugins installed. When using this feature in a clean and plain Eclipse SDK then the probability is lower. Sometimes I need to expand the template of the example several times in a row to reproduce this bug. (But it still happens with a clean Eclipse, too.) 

I tested this bug with an Eclipse 3.2 instance of a team member (with plugins installed): the problem occurs here, too (not on every invocation). Seems to be some race condition somewhere.

Is there anything I can help you to explore this bug on your machine? 
Comment 7 Dani Megert CLA 2007-05-30 04:07:45 EDT
Best is trying to get a reproducible scenario. I just tried again several times in plain Eclipse SDK 3.3 RC2 and it works for me. I won't try 3.2 as we wont provide fixes for that version.
Comment 8 Dani Megert CLA 2007-06-22 09:59:40 EDT
Get rid of deprecated state.
Comment 9 Dani Megert CLA 2007-06-22 10:04:50 EDT
.