Package org.eclipse.jface.text.contentassist

Examples of org.eclipse.jface.text.contentassist.IContentAssistProcessor.computeContextInformation()


        !getLegacyExtendedContentAssistProcessors().isEmpty()) {
     
      Iterator iter = getLegacyExtendedContentAssistProcessors().iterator();
      while (iter.hasNext()) {
        IContentAssistProcessor legacyProcessor = (IContentAssistProcessor) iter.next();
        IContextInformation[] legacyComputed = legacyProcessor.computeContextInformation(viewer, offset);
        if(legacyComputed != null) {
          proposals.addAll(Arrays.asList(legacyComputed));
        }
      }
    }
View Full Code Here


        !getLegacyExtendedContentAssistProcessors().isEmpty()) {
     
      Iterator iter = getLegacyExtendedContentAssistProcessors().iterator();
      while (iter.hasNext()) {
        IContentAssistProcessor legacyProcessor = (IContentAssistProcessor) iter.next();
        IContextInformation[] legacyComputed = legacyProcessor.computeContextInformation(viewer, offset);
        if(legacyComputed != null) {
          proposals.addAll(Arrays.asList(legacyComputed));
        }
      }
    }
View Full Code Here

  public IContextInformation[] computeContextInformation(ITextViewer viewer, int documentOffset) {
    fErrorMessage = null;
    List ret = new LinkedList();
    for (Iterator it = fProcessors.iterator(); it.hasNext();) {
      IContentAssistProcessor p = (IContentAssistProcessor) it.next();
      IContextInformation[] informations = p.computeContextInformation(viewer, documentOffset);
      if (informations != null && informations.length > 0) {
        for (int i = 0; i < informations.length; i++)
          ret.add(new WrappedContextInformation(informations[i], p));
        fErrorMessage = null; // Hide previous errors
      } else {
View Full Code Here

    IContextInformation[] result= null;

    IContentAssistProcessor p= getProcessor(viewer, position);
    if (p != null) {
      result= p.computeContextInformation(viewer, position);
      fLastErrorMessage= p.getErrorMessage();
    }

    return result;
  }
View Full Code Here

    IContextInformation[] result= null;

    IContentAssistProcessor p= getProcessor(viewer, position);
    if (p != null) {
      result= p.computeContextInformation(viewer, position);
      fLastErrorMessage= p.getErrorMessage();
    }

    return result;
  }
View Full Code Here

    List proposals= new ArrayList();
   
    List providers= getCategories();
    for (Iterator it= providers.iterator(); it.hasNext();) {
      IContentAssistProcessor cat= (IContentAssistProcessor) it.next();
      IContextInformation[] computed= cat.computeContextInformation(viewer,offset);
      proposals.addAll(arrayToCollection(computed));
      if (fErrorMessage == null)
        fErrorMessage= cat.getErrorMessage();
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.