我想在IMarker的文件中標記EObject。我可以使用的唯一標識符是作爲行的一部分出現的。從文件片段獲取行號
如何獲取包含此標識符的行號?
所以我有這個文件包含了像
@ARTICLE{Author2015,
title={Hello World},
...
}
@BOOK{Author2000,
title={Book Title},
...
}
中文提供幾個條目,我有我的目標
BibtexObject bib = ...
String identifier = bib.getIdentifier(); // = "Author2000"
我一定要檢查並計數使用IFile#getContents()
每一行?
謝謝。