title: Content assist with javaCompletionProposalComputer for Eclipse JSDT gives no proposal
body: <p>Content assist with <code>org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer</code> for Eclipse JSDT gives no proposal.</p>
  
  <p>In <code>Preferences -&gt; JavaScript -&gt; Editor -&gt; Content Assist -&gt; Advanced</code>
  "Nodeclipse Proposals" are visible, and selected.</p>
  
  <p>as advised by Bananaweizen to <a href="https://stackoverflow.com/questions/20738788/content-assist-for-eclipse-jsdt-based-editor">Content assist for Eclipse JSDT based Editor</a></p>
  
  <p>in plugin.xml</p>
  
  <pre><code>&lt;extension point="org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer"
     id="nodeclispe_textual_proposals"
     name="Nodeclipse Text Proposals"&gt;
     &lt;proposalCategory icon="icons/npm/npm.gif"/&gt;
   &lt;/extension&gt;
   &lt;extension point="org.eclipse.wst.jsdt.ui.javaCompletionProposalComputer"
     id="NodeclipseProposals"
     name="Nodeclipse Proposals"&gt;
     &lt;javaCompletionProposalComputer
        class="org.nodeclipse.ui.contentassist.JSDTProposalComputer"
        categoryId="org.eclipse.ui.texteditor.textual_proposals"&gt;
        &lt;partition type="__java_javadoc"/&gt;
     &lt;/javaCompletionProposalComputer&gt;
   &lt;/extension&gt;
  </code></pre>
  
  <p><code>JSDTProposalComputer</code> is just wrapper for <code>NodeContentAssistant</code><br>
  (that implements <code>IContentAssistProcessor</code>), that works perfectly well for TextEditor based Editor.</p>
  
  <pre><code>public class JSDTProposalComputer implements IJavaCompletionProposalComputer {
  
      IContentAssistProcessor assistant = new NodeContentAssistant();
  
      @Override
      public List&lt;ICompletionProposal&gt; computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {
          return Arrays.asList(assistant.computeCompletionProposals(context.getViewer(), context.getInvocationOffset()));
      }
  
      @Override
      public List&lt;IContextInformation&gt; computeContextInformation(ContentAssistInvocationContext context, IProgressMonitor monitor) {
          return Arrays.asList(assistant.computeContextInformation(context.getViewer(), context.getInvocationOffset()));
      }
  </code></pre>
  
  <p>examples from <a href="http://help.eclipse.org/juno/index.jsp?topic=/org.eclipse.wst.jsdt.doc/reference/extension-points/org_eclipse_wst_jsdt_ui_javaCompletionProposalComputer.html" rel="nofollow noreferrer">help</a> are  </p>
  
  <ul>
  <li>HippieProposalComputer - <a href="http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/HippieProposalComputer.java" rel="nofollow noreferrer">http://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/HippieProposalComputer.java</a></li>
  <li>HippieProposalProcessor - <a href="http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.5.2/org.eclipse.ui.workbench/texteditor/3.5.1/org/eclipse/ui/texteditor/HippieProposalProcessor.java" rel="nofollow noreferrer">http://grepcode.com/file/repository.grepcode.com/java/eclipse.org/3.5.2/org.eclipse.ui.workbench/texteditor/3.5.1/org/eclipse/ui/texteditor/HippieProposalProcessor.java</a></li>
  </ul>
  
  <p>All code is on GitHUb <code>contentassist</code> package <a href="https://github.com/Enide/nodeclipse-1/tree/master/org.nodeclipse.ui/src/org/nodeclipse/ui/contentassist" rel="nofollow noreferrer">https://github.com/Enide/nodeclipse-1/tree/master/org.nodeclipse.ui/src/org/nodeclipse/ui/contentassist</a></p>