IncludeInfoImpl(CsmInclude include, CharSequence path) { this.line = include.getStartPosition().getLine(); this.include = include; this.path = path; }
private void appendInclStack(StringBuilder buf, List<CsmInclude> includeStack) { if (!includeStack.isEmpty()) { buf.append("<i>").append(i18n("PathToCurFile")).append("</i>\n"); // NOI18N for (CsmInclude inc : includeStack) { if (inc != null) { final CsmFile file = inc.getContainingFile(); CharSequence path = null; if (file != null) { path = file.getAbsolutePath(); } if (path == null) { path = "?"; //NOI18N } final CsmOffsetable.Position startPosition = inc.getStartPosition(); int line = -1; if (startPosition != null) { line = startPosition.getLine(); } if (file != null && startPosition != null){ String msg = i18n("PathToHeaderOnLine", path.toString(), line); // NOI18N buf.append(msg).append('\n'); } } } } }
buf.append("\n<br> "); // NOI18N buf.append(inc.getContainingFile().getAbsolutePath()); buf.append(i18n("PathToHeaderLine", inc.getStartPosition().getLine())); // NOI18N