/** * @see IContentAssistProcessor#getContextInformationValidator() */ public IContextInformationValidator getContextInformationValidator() { if (fValidator == null) { fValidator= new JavaParameterListValidator(); } return fValidator; }
if (next == '*') { offset= getCommentEnd(document, offset + 1, end); } else if (next == '/') { case '"': case '\'': offset= getStringEnd(document, offset, end, curr); break; case '[': if (nestingMode == ANGLE || nestingMode == NONE && checkGenericsHeuristic(document, offset - 1, start - 1)) { nestingMode= ANGLE; nestingLevel++;
currentParameter= getCharCount(fViewer.getDocument(), fPosition, position, ",", "", true); //$NON-NLS-1$//$NON-NLS-2$ } catch (BadLocationException x) { return false; int[] commas= computeCommaPositions(s);
/** * @see IContextInformationValidator#isContextInformationValid(int) */ public boolean isContextInformationValid(int position) { try { if (position < fPosition) return false; IDocument document= fViewer.getDocument(); IRegion line= document.getLineInformationOfOffset(fPosition); if (position < line.getOffset() || position >= document.getLength()) return false; return getCharCount(document, fPosition, position, "(<", ")>", false) >= 0; //$NON-NLS-1$ //$NON-NLS-2$ } catch (BadLocationException x) { return false; } }
if (next == '*') { offset= getCommentEnd(document, offset + 1, end); } else if (next == '/') { case '"': case '\'': offset= getStringEnd(document, offset, end, curr); break; case '[': if (nestingMode == ANGLE || nestingMode == NONE && checkGenericsHeuristic(document, offset - 1, start - 1)) { nestingMode= ANGLE; nestingLevel++;
currentParameter= getCharCount(fViewer.getDocument(), fPosition, position, ",", "", true); //$NON-NLS-1$//$NON-NLS-2$ } catch (BadLocationException x) { return false; int[] commas= computeCommaPositions(s);
/** * @see IContextInformationValidator#isContextInformationValid(int) */ @Override public boolean isContextInformationValid(int position) { try { if (position < fPosition) return false; IDocument document= fViewer.getDocument(); IRegion line= document.getLineInformationOfOffset(fPosition); if (position < line.getOffset() || position >= document.getLength()) return false; return getCharCount(document, fPosition, position, "(<", ")>", false) >= 0; //$NON-NLS-1$ //$NON-NLS-2$ } catch (BadLocationException x) { return false; } }
if (next == '*') { offset= getCommentEnd(document, offset + 1, end); } else if (next == '/') { case '"': case '\'': offset= getStringEnd(document, offset, end, curr); break; case '[': if (nestingMode == ANGLE || nestingMode == NONE && checkGenericsHeuristic(document, offset - 1, start - 1)) { nestingMode= ANGLE; nestingLevel++;
currentParameter= getCharCount(fViewer.getDocument(), fPosition, position, ",", "", true); //$NON-NLS-1$//$NON-NLS-2$ } catch (BadLocationException x) { return false; int[] commas= computeCommaPositions(s);
/** * @see IContentAssistProcessor#getContextInformationValidator() */ public IContextInformationValidator getContextInformationValidator() { if (fValidator == null) { fValidator= new JavaParameterListValidator(); } return fValidator; }
/** * @see IContextInformationValidator#isContextInformationValid(int) */ @Override public boolean isContextInformationValid(int position) { try { if (position < fPosition) return false; IDocument document= fViewer.getDocument(); IRegion line= document.getLineInformationOfOffset(fPosition); if (position < line.getOffset() || position >= document.getLength()) return false; return getCharCount(document, fPosition, position, "(<", ")>", false) >= 0; //$NON-NLS-1$ //$NON-NLS-2$ } catch (BadLocationException x) { return false; } }
@Override public IContextInformationValidator getContextInformationValidator() { if (fValidator == null) fValidator= new JavaParameterListValidator(); return fValidator; }
public IContextInformationValidator getContextInformationValidator() { if (fValidator == null) fValidator= new JavaParameterListValidator(); return fValidator; }
@Override public IContextInformationValidator getContextInformationValidator() { if (fValidator == null) fValidator= new JavaParameterListValidator(); return fValidator; }