private static String getNormalizedTypeReference(SearchMatch searchResult) throws JavaModelException { ICompilationUnit cu= SearchUtils.getCompilationUnit(searchResult); String reference= cu.getBuffer().getText(searchResult.getOffset(), searchResult.getLength()); //reference may be package-qualified -> normalize (remove comments, etc.): return CommentAnalyzer.normalizeReference(reference); }
private static String getNormalizedTypeReference(SearchMatch searchResult) throws JavaModelException { ICompilationUnit cu= SearchUtils.getCompilationUnit(searchResult); String reference= cu.getBuffer().getText(searchResult.getOffset(), searchResult.getLength()); //reference may be package-qualified -> normalize (remove comments, etc.): return CommentAnalyzer.normalizeReference(reference); }
private static String getNormalizedTypeReference(SearchMatch searchResult) throws JavaModelException { ICompilationUnit cu= SearchUtils.getCompilationUnit(searchResult); String reference= cu.getBuffer().getText(searchResult.getOffset(), searchResult.getLength()); //reference may be package-qualified -> normalize (remove comments, etc.): return CommentAnalyzer.normalizeReference(reference); }
private static String getNormalizedTypeReference(SearchMatch searchResult) throws JavaModelException { ICompilationUnit cu= SearchUtils.getCompilationUnit(searchResult); String reference= cu.getBuffer().getText(searchResult.getOffset(), searchResult.getLength()); //reference may be package-qualified -> normalize (remove comments, etc.): return CommentAnalyzer.normalizeReference(reference); }