List<ICompletionProposal> proposals= computer.computeCompletionProposals(context, monitor); stopMeter(stats, COMPUTE_COMPLETION_PROPOSALS); fLastError= computer.getErrorMessage(); return proposals;
List<IContextInformation> proposals= computer.computeContextInformation(context, monitor); stopMeter(stats, COMPUTE_CONTEXT_INFORMATION); fLastError= computer.getErrorMessage(); return proposals;
/** * Notifies the described extension of a proposal computation session start. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionStarted() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(true); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_STARTED, computer); computer.sessionStarted(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); }
/** * Notifies the described extension of a proposal computation session end. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionEnded() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_ENDED, computer); computer.sessionEnded(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); }
/** * Notifies the described extension of a proposal computation session start. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionStarted() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(true); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_STARTED, computer); computer.sessionStarted(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); }
/** * Notifies the described extension of a proposal computation session end. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionEnded() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(false); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_ENDED, computer); computer.sessionEnded(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); }
List<IContextInformation> proposals= computer.computeContextInformation(context, monitor); stopMeter(stats, COMPUTE_CONTEXT_INFORMATION); fLastError= computer.getErrorMessage(); return proposals;
List<ICompletionProposal> proposals= computer.computeCompletionProposals(context, monitor); stopMeter(stats, COMPUTE_COMPLETION_PROPOSALS); fLastError= computer.getErrorMessage(); return proposals;
computer.sessionStarted(); stopMeter(stats, SESSION_ENDED);
/** * Notifies the described extension of a proposal computation session end. * <p><em> * Note: This method is called every time code assist is invoked and * is <strong>not</strong> filtered by partition type. * </em></p> */ public void sessionEnded() { if (!isEnabled()) return; IStatus status; try { IJavaCompletionProposalComputer computer= getComputer(false); if (computer == null) // not active yet return; PerformanceStats stats= startMeter(SESSION_ENDED, computer); computer.sessionEnded(); stopMeter(stats, SESSION_ENDED); return; } catch (InvalidRegistryObjectException x) { status= createExceptionStatus(x); } catch (CoreException x) { status= createExceptionStatus(x); } catch (RuntimeException x) { status= createExceptionStatus(x); } fRegistry.informUser(this, status); }
List proposals= computer.computeContextInformation(context, monitor); stopMeter(stats, COMPUTE_CONTEXT_INFORMATION); fLastError= computer.getErrorMessage(); return proposals;
List proposals= computer.computeCompletionProposals(context, monitor); stopMeter(stats, COMPUTE_COMPLETION_PROPOSALS); fLastError= computer.getErrorMessage(); return proposals;