Examples of computeContextInformation()


Examples of org.eclipse.jface.contentassist.ISubjectControlContentAssistProcessor.computeContextInformation()

    List ret = new LinkedList();
    for (Iterator it = fProcessors.iterator(); it.hasNext();) {
      Object o = it.next();
      if (o instanceof ISubjectControlContentAssistProcessor) {
        ISubjectControlContentAssistProcessor p = (ISubjectControlContentAssistProcessor) o;
        IContextInformation[] informations = p.computeContextInformation(contentAssistSubjectControl, 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

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

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

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

  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

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

    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

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

    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

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

    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

Examples of org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer.computeContextInformation()

      try {
        // plugin must be active to get computer
        ICompletionProposalComputer computer = getComputer(true);
        if (computer != null) {
          PerformanceStats stats= startMeter(context, computer);
          List proposals= computer.computeContextInformation(context, monitor);
          stopMeter(stats, COMPUTE_CONTEXT_INFORMATION);
   
          if (proposals != null) {
            fLastError= computer.getErrorMessage();
            contextInformation = proposals;
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.contentassist.CompletionProposalCategory.computeContextInformation()

    CompletionProposalInvocationContext context= createContext(viewer, offset);

    List providers= getCategories();
    for (Iterator it= providers.iterator(); it.hasNext();) {
      CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
      List computed= cat.computeContextInformation(context, this.fContentTypeID, this.fPartitionTypeID, new SubProgressMonitor(monitor, 1));
      proposals.addAll(computed);
      if (fErrorMessage == null) {
        fErrorMessage= cat.getErrorMessage();
      }
    }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.contentassist.CompletionProposalCategory.computeContextInformation()

    CompletionProposalInvocationContext context= createContext(viewer, offset);

    List providers= getCategories();
    for (Iterator it= providers.iterator(); it.hasNext();) {
      CompletionProposalCategory cat= (CompletionProposalCategory) it.next();
      List computed= cat.computeContextInformation(context, this.fContentTypeID, this.fPartitionTypeID, new SubProgressMonitor(monitor, 1));
      proposals.addAll(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.