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

Bug 233879

Summary: duplicate content assist after first startup
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Mik Kersten <mik.kersten>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: wmitsuda
Version: unspecified   
Target Milestone: 3.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
mylyn/context/zip none

Description Steffen Pingel CLA 2008-05-25 21:20:53 EDT
Steps to reproduce:

1. Start with a clean workspace
2. Create a Java project and a Java class
3. Use content assist

The entries are duplicated since the Mylyn and default JDT proposal computers are active:

Using content assist triggers activation of o.e.m.java.ui which sets the content assist preferences. At this point preference have already been read by JDT and all proposal computers remain active.

Another instance of this problem:

1. Start with a clean workspace
2. Open preferences

The JDT default proposals and the Mylyn proposals are both active.
Comment 1 Willian Mitsuda CLA 2008-05-26 18:27:14 EDT
This bug has triggered after the fix for bug#233873.

I have a workspace with 3.0.0.I20080524-1000, and if I have only Mylyn proposal computers activated, I get the behavior from bug#233873: nothing is proposed.

I made another test installation with the recent build 3.0.0.I20080526-0000, and I get the behavior described in this bug (duplicate entries).

If I enter the content assist preference page (Java -> Editor -> Content Assist -> Advanced), do nothing and simply hit OK, the right behavior is achieved.
Comment 2 Steffen Pingel CLA 2008-05-26 22:48:56 EDT
You will get the duplicate entries the first time content assist is used (the problem is fixed after a restart). This might be a duplicate of bug 129080.
Comment 3 Mik Kersten CLA 2008-05-30 22:03:30 EDT
Fixed by making us detect if Java proposals are enabled.
Comment 4 Mik Kersten CLA 2008-05-30 22:03:32 EDT
Created attachment 103007 [details]
mylyn/context/zip