Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 233873 - Mylyn Java proposals are not working in 3.0.0.I20080525-2100
Summary: Mylyn Java proposals are not working in 3.0.0.I20080525-2100
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: PC Windows Vista
: P1 critical (vote)
Target Milestone: 3.0   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-25 18:41 EDT by Willian Mitsuda CLA
Modified: 2008-05-25 20:28 EDT (History)
2 users (show)

See Also:


Attachments
patch (4.33 KB, patch)
2008-05-25 20:27 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (2.88 KB, application/octet-stream)
2008-05-25 20:27 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willian Mitsuda CLA 2008-05-25 18:41:47 EDT
- Install 3.0.0.I20080525-2100 build in Eclipse 3.4 RC2.
- Check the Java/Editor/Content Assist/Advanced preference page, and make sure the default proposal kinds are disabled and the Mylyn ones are enabled.
- Create a Java class.
- The content assist doesn't work.
Comment 1 Steffen Pingel CLA 2008-05-25 19:21:37 EDT
I can't reproduce this bug. Willian, can you provide more detailed steps (kind of Java project, runtime environment...)?
Comment 2 Willian Mitsuda CLA 2008-05-25 19:37:39 EDT
It is a normal Java project. I'm running with a Java 6 VM, 1.6 compiler compliance.

Tested with a blank workspace, so using default settings.

Make sure the default Java proposals are disabled ("Other Java Proposals", "Template Proposals", "Type Proposals") and the Mylyn counterparts are enabled ("Other Java Proposals (Mylyn)", "Template Proposals (Mylyn)", "Type Proposals (Mylyn)").

BTW, I thought Mylyn would automatically disable the "normal" versions of proposals, AFAIK, which is not happening in my test.

Create a class Test, and in the method body type:

main<Ctrl+Space> -> you should be getting the proposal for main method template; you get nothing.
String<Strl+Space> -> you should be getting the proposal for java type content assist; you get nothing.
Comment 3 Steffen Pingel CLA 2008-05-25 19:48:34 EDT
I can reproduce it when I start editing the Java file before activating a task. The Java bridge is probably not activated hence not contributing proposals. The same applies to the preferences: If you activate a task before opening the preferences the default proposals should be selected.
Comment 4 Steffen Pingel CLA 2008-05-25 20:13:52 EDT
Mik, the "activate" flag needs to be set for all completion processors contributed java.ui otherwise JDT will assume that the list of completions is empty.
Comment 5 Steffen Pingel CLA 2008-05-25 20:21:41 EDT
This bug essentially breaks Java content assist until the first task activation. Looking into fixing this now.
Comment 6 Steffen Pingel CLA 2008-05-25 20:27:09 EDT
Created attachment 101905 [details]
patch
Comment 7 Steffen Pingel CLA 2008-05-25 20:27:10 EDT
Created attachment 101906 [details]
mylyn/context/zip
Comment 8 Steffen Pingel CLA 2008-05-25 20:28:23 EDT
Patch committed.