public String getErrorMessage() { for (IContentAssistProcessor delegate : delegates) { String message = delegate.getErrorMessage(); if (message != null) { return message; } } return null; }
@Override public void run() throws Exception { processors.forEach(p -> { IContextInformation[] contextInformation= p.computeContextInformation(viewer, offset); if (contextInformation != null) { result.addAll(Arrays.asList(contextInformation)); } fLastErrorMessage= p.getErrorMessage(); }); } });
@Override public void run() throws Exception { result[0]= ((ISubjectControlContentAssistProcessor) p) .computeContextInformation(contentAssistSubjectControl, offset); fLastErrorMessage= p.getErrorMessage(); } });
@Override public void run() throws Exception { processors.forEach(p -> { ICompletionProposal[] proposals= p.computeCompletionProposals(viewer, offset); if (proposals != null) { res.addAll(Arrays.asList(proposals)); } fLastErrorMessage= p.getErrorMessage(); }); } });
@Override public void run() throws Exception { result[0]= ((ISubjectControlContentAssistProcessor) p) .computeCompletionProposals(contentAssistSubjectControl, offset); fLastErrorMessage= p.getErrorMessage(); } });
@Override public void run() throws Exception { result[0]= p.computeCompletionProposals(viewer, offset); fLastErrorMessage= p.getErrorMessage(); } });
@Override public void run() throws Exception { result[0]= p.computeContextInformation(viewer, offset); fLastErrorMessage= p.getErrorMessage(); } });
/** * Returns an array of context information objects computed based * on the specified document position. The position is used to determine * the appropriate content assist processor to invoke. * * @param viewer the viewer for which to compute the context information * @param position a document position * @return an array of context information objects * * @see IContentAssistProcessor#computeContextInformation */ IContextInformation[] computeContextInformation(ITextViewer viewer, int position) { fLastErrorMessage= null; IContextInformation[] result= null; IContentAssistProcessor p= getProcessor(viewer, position); if (p != null) { result= p.computeContextInformation(viewer, position); fLastErrorMessage= p.getErrorMessage(); } return result; }
/** * Returns an array of context information objects computed based * on the specified document position. The position is used to determine * the appropriate content assist processor to invoke. * * @param viewer the viewer for which to compute the context information * @param position a document position * @return an array of context information objects * * @see IContentAssistProcessor#computeContextInformation */ IContextInformation[] computeContextInformation(ITextViewer viewer, int position) { fLastErrorMessage= null; IContextInformation[] result= null; IContentAssistProcessor p= getProcessor(viewer, position); if (p != null) { result= p.computeContextInformation(viewer, position); fLastErrorMessage= p.getErrorMessage(); } return result; }