ITeye博客

eclipse 可以显示行号,这个行号,是否可以传到文件中呢?

zwhc · 2012-10-16 09:15 · 编程语言 · Java · Eclipse · 行号 · Markdown

eclipse 可以显示行号,这个行号,是否可以传到文件中呢? 比如,


	public void dispose() {
		java.util.Iterator iterator = GetAttachmentsIterator(); 
		while (iterator.hasNext()) {
			Part part = (Part) iterator.next(); System.out.println("line:710:" + part);
			if (part instanceof AttachmentPart) {
				AttachmentPart apart = (AttachmentPart) part;
				apart.dispose();
			}
		}

	}

这其中的 710 我希望能让 eclipse 自动传进去。

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。