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 {