Package org.eclipse.jface.text.source

Examples of org.eclipse.jface.text.source.TextInvocationContext


  public ICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext) {
    ISourceViewer viewer= quickAssistContext.getSourceViewer();
    int documentOffset= quickAssistContext.getOffset();

    int length= viewer != null ? viewer.getSelectedRange().y : 0;
    TextInvocationContext context= new TextInvocationContext(viewer, documentOffset, length);


    IAnnotationModel model= viewer.getAnnotationModel();
    if (model == null)
      return fgNoSuggestionsProposal;
View Full Code Here


    public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
      // panic code - should not happen
      if (!(viewer instanceof ISourceViewer))
        return null;
     
      return fQuickAssistProcessor.computeQuickAssistProposals(new TextInvocationContext((ISourceViewer)viewer, offset, -1));
    }
View Full Code Here

  public ICompletionProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext quickAssistContext) {
    ISourceViewer viewer= quickAssistContext.getSourceViewer();
    int documentOffset= quickAssistContext.getOffset();

    int length= viewer != null ? viewer.getSelectedRange().y : -1;
    TextInvocationContext context= new TextInvocationContext(viewer, documentOffset, length);


    IAnnotationModel model= viewer.getAnnotationModel();
    if (model == null)
      return fgNoSuggestionsProposal;
View Full Code Here

    public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
      // panic code - should not happen
      if (!(viewer instanceof ISourceViewer))
        return null;

      return fQuickAssistProcessor.computeQuickAssistProposals(new TextInvocationContext((ISourceViewer)viewer, offset, -1));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.source.TextInvocationContext

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.