Package org.springframework.ide.eclipse.beans.ui.editor.contentassist

Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.DefaultContentAssistContext


    }
   
   
    ContentAssistRequest contentAssistRequest = new ContentAssistRequest(nodeAtOffset, node, getStructuredDocumentRegion(documentPosition), completionRegion, offset, len, matchString);
    IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(contentAssistRequest);
    IContentAssistContext context = new DefaultContentAssistContext(contentAssistRequest, "xyz", //@TODO
        matchString);   
   
    BeansJavaCompletionUtils.addClassValueProposals(context, recorder, BeansJavaCompletionUtils.FLAG_PACKAGE | BeansJavaCompletionUtils.FLAG_CLASS | BeansJavaCompletionUtils.FLAG_INTERFACE);
    convertProposals(contentAssistRequest.getProposals());
   
View Full Code Here


          return JdtUtils.getJavaType(file.getProject(), className);
        }
      };
     
      IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(contentAssistRequest);
      IContentAssistContext context = new DefaultContentAssistContext(contentAssistRequest, "xyz", //FIXME
          prefix);         
     
      calculator.computeProposals(context, recorder); //request, prefix, null, null, null);
    }
  }
View Full Code Here

      String attributeName, String namespace, String prefix) {
    if ("bean".equals(node.getNodeName())) {
      if (("http://www.springframework.org/schema/p".equals(namespace)
          || "http://www.springframework.org/schema/c".equals(namespace))
          && attributeName.endsWith("-ref")) {
        IContentAssistContext context = new DefaultContentAssistContext(request, attributeName, matchString);
        IContentAssistProposalRecorder recorder = new DefaultContentAssistProposalRecorder(request);
        addBeanReferenceProposals(context, recorder);
      }
    }
  }
View Full Code Here

   *
   * @param contents the current contents of the text field
   * @return content assist context for this proposal provider
   */
  protected IContentAssistContext createContentAssistContext(String contents) {
    return new DefaultContentAssistContext(request, name, contents);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.editor.contentassist.DefaultContentAssistContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.