/** * Returns the characters which when typed by the user should automatically * initiate the presentation of context information. The position is used * to determine the appropriate content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return the auto activation characters * * @see IContentAssistProcessor#getContextInformationAutoActivationCharacters */ private char[] getContextInformationAutoActivationCharacters(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getContextInformationAutoActivationCharacters() : null; }
/** * Returns the characters which when typed by the user should automatically * initiate the presentation of context information. The position is used * to determine the appropriate content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return the auto activation characters * * @see IContentAssistProcessor#getContextInformationAutoActivationCharacters */ private char[] getContextInformationAutoActivationCharacters(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getContextInformationAutoActivationCharacters() : null; }
/** * Returns the characters which when typed by the user should automatically * initiate proposing completions. The position is used to determine the * appropriate content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return the auto activation characters * * @see IContentAssistProcessor#getCompletionProposalAutoActivationCharacters */ private char[] getCompletionProposalAutoActivationCharacters(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getCompletionProposalAutoActivationCharacters() : null; }
/** * Returns the characters which when typed by the user should automatically * initiate proposing completions. The position is used to determine the * appropriate content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return the auto activation characters * * @see IContentAssistProcessor#getCompletionProposalAutoActivationCharacters */ private char[] getCompletionProposalAutoActivationCharacters(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getCompletionProposalAutoActivationCharacters() : null; }
/** * Returns the context information validator that should be used to * determine when the currently displayed context information should * be dismissed. The position is used to determine the appropriate * content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return an validator * * @see IContentAssistProcessor#getContextInformationValidator */ IContextInformationValidator getContextInformationValidator(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getContextInformationValidator() : null; }
/** * Returns the context information validator that should be used to * determine when the currently displayed context information should * be dismissed. The position is used to determine the appropriate * content assist processor to invoke. * * @param textViewer the text viewer * @param offset a document offset * @return an validator * * @see IContentAssistProcessor#getContextInformationValidator */ IContextInformationValidator getContextInformationValidator(ITextViewer textViewer, int offset) { IContentAssistProcessor p= getProcessor(textViewer, offset); return p != null ? p.getContextInformationValidator() : null; }
/** * 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; }