Package org.eclipse.wst.sse.ui.contentassist

Examples of org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer


    List completionProposals = Collections.EMPTY_LIST;
    if (isEnabled()) {
      IStatus status = null;
      try {
        // plugin must be active to get computer
        ICompletionProposalComputer computer = getComputer(true);
        if (computer != null) {
          try {
            PerformanceStats stats= startMeter(context, computer);
            //ask the computer for the proposals
            List proposals = computer.computeCompletionProposals(context, monitor);
            stopMeter(stats, COMPUTE_COMPLETION_PROPOSALS);
   
            if (proposals != null) {
              fLastError = computer.getErrorMessage();
              completionProposals = proposals;
            } else {
              status = createAPIViolationStatus(COMPUTE_COMPLETION_PROPOSALS);
            }
          } finally {
View Full Code Here


    List contextInformation = Collections.EMPTY_LIST;
    if (isEnabled()) {
      IStatus status = null;
      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;
          } else {
            status = createAPIViolationStatus(COMPUTE_CONTEXT_INFORMATION);
          }
        }
View Full Code Here

  public void sessionStarted() {
    if (isEnabled()) {
      IStatus status = null;
      try {
        // plugin must be active to get computer
        ICompletionProposalComputer computer = getComputer(true);
        if (computer != null) {
          PerformanceStats stats = startMeter(SESSION_STARTED, computer);
          computer.sessionStarted();
          stopMeter(stats, SESSION_ENDED);
        }
      } catch (InvalidRegistryObjectException x) {
        status= createExceptionStatus(x);
      } catch (CoreException x) {
View Full Code Here

  public void sessionEnded() {
    if (isEnabled()) {
      IStatus status = null;
      try {
        // plugin must be active to get computer
        ICompletionProposalComputer computer = getComputer(true);
        if (computer != null) {
          PerformanceStats stats= startMeter(SESSION_ENDED, computer);
          computer.sessionEnded();
          stopMeter(stats, SESSION_ENDED);
        }
      } catch (InvalidRegistryObjectException x) {
        status= createExceptionStatus(x);
      } catch (CoreException x) {
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer

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.