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

Bug 324726

Summary: No content assist possible in single quotes string
Product: [WebTools] JSDT Reporter: Jacek Pospychala <jacek.pospychala>
Component: GeneralAssignee: Jacek Pospychala <jacek.pospychala>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.2Flags: cmjaun: review+
thatnitind: review+
Target Milestone: 3.2.3   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch thatnitind: iplog+

Description Jacek Pospychala CLA 2010-09-08 06:41:24 EDT
I'm using org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer extension point to add some cool completion proposals in javascript strings:

<javaCompletionProposalComputer
            activate="true"
            class="jaceks.CoolJCPComputer">
         <partition
               type="__java_string">
         </partition>
         <partition
               type="__java_character">
         </partition>
      </javaCompletionProposalComputer>


This enables content assist in JS files in double-quoted strings ("__java_string"), but unfortunately not in single-quoted strings ("__java_character").
Comment 1 Jacek Pospychala CLA 2010-09-08 06:44:08 EDT
Created attachment 178382 [details]
patch

Solution that works for me is to use the same ContentAssistProcessor for both __java_character and __java_string partitions.
Previously, no processor was configured for __java_character partition.
Comment 2 Chris Jaun CLA 2010-09-15 14:47:03 EDT
Patch looks fine to me.

Marked for Nitin's review.

3.2.3 will open up for fixes in a couple weeks.
Comment 3 Nitin Dahyabhai CLA 2010-09-28 17:33:51 EDT
Applied to HEAD and maintenance.