Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何获得代码块的长度';eclipse文档中的偏移量和行信息?_Eclipse_Document_Offset - Fatal编程技术网

如何获得代码块的长度';eclipse文档中的偏移量和行信息?

如何获得代码块的长度';eclipse文档中的偏移量和行信息?,eclipse,document,offset,Eclipse,Document,Offset,在开发eclipse插件时,我遇到了如下问题: 我想在eclipse文档中获取代码块的偏移量和行数,这是如何实现的 像这样编码 text-decoration 还有像这样的文件 body{background:#f0f1f1 url(../../../../../images/itbu/pm/itrade/v4/index_bg.png?v=20111102) repeat-x scroll 0px 41px;} a:hover{text-decoration:underline;} a b

在开发eclipse插件时,我遇到了如下问题: 我想在eclipse文档中获取代码块的偏移量和行数,这是如何实现的

像这样编码

 text-decoration
还有像这样的文件

body{background:#f0f1f1 url(../../../../../images/itbu/pm/itrade/v4/index_bg.png?v=20111102) repeat-x scroll 0px 41px;}
a:hover{text-decoration:underline;}
a b, a em, a span, a i{cursor:pointer;}
.clearFix{zoom:1;}
.clearFix:after{content:"\0020";display:block;height:0;clear:both;}
.Left{float:left;margin-bottom:3px;}
.Right{float:right;}
.Tc{text-align:center;}
.Tr{text-align:right;}
.Tl{text-align:left;}
如果代码块是唯一的,我想得到一个行号和此行的偏移量 致以最良好的祝愿