---
title: "eclipse 可以显示行号，这个行号，是否可以传到文件中呢？"
author: "zwhc"
date: "2012-10-16T09:15:31Z"
tags: ["Eclipse", "Java", "行号"]
categories: ["编程语言"]
slug: "eclipse"
draft: false
lastmod: "2012-10-16T09:15:31Z"
id: 1698936
url: "https://zwhc.iteye.com/blog/1698936"
---

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

```java

	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 自动传进去。