Bug 156185 - [api] Need api to create a JavaTypeCompletionProcessor
Summary: [api] Need api to create a JavaTypeCompletionProcessor
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2006-09-05 07:46 EDT by Naci Dai CLA
Modified: 2007-05-07 03:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.