Bug 156185

Summary: [api] Need api to create a JavaTypeCompletionProcessor
Product: [Eclipse Project] JDT Reporter: Naci Dai <naci.dai>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: david_williams, neil.hauge
Version: 3.2Keywords: api
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Naci Dai CLA 2006-09-05 07:46:15 EDT
In the WTP we need to create a tect editor field in a wizard that can provide java code type completion (i.e user enters a type for an attribute).  An exmaple is provided below.  The classes JavaTypeCompletionProcessor, and ControlContentAssistHelper are internal in jdt.ui.   





if (sources != null && sources.length >= 1) {
			JavaTypeCompletionProcessor fFieldTypeCompletionProcessor = new JavaTypeCompletionProcessor(false, false);
fFieldTypeCompletionProcessor.setPackageFragment(getPackageFragment());
ControlContentAssistHelper.createTextContentAssistant(((Text) typeEdit.getControl()), fFieldTypeCompletionProcessor);
}
Comment 1 Naci Dai CLA 2006-09-05 07:46:35 EDT
added david to CC
Comment 2 Naci Dai CLA 2006-09-05 07:47:23 EDT
see bug 156173
Comment 3 Naci Dai CLA 2006-09-05 07:48:55 EDT
Changed to enhancement
Comment 4 Dani Megert CLA 2006-09-05 10:30:57 EDT
Sorry - too fast - those are indeed JDT UI classes
Comment 5 Neil Hauge CLA 2007-05-03 17:42:41 EDT
API should also be added for the corresponding JavaPackageCompletionProcessor.