我试图在 LineNumberChangeRulerColumn 上显示作者或 ChangeInformation。
Iterator<IVerticalRulerColumn> it = ruler2.getDecoratorIterator();
while(it.hasNext()){
IVerticalRulerColumn c = it.next();
if(c instanceof LineNumberChangeRulerColumn){
LineNumberChangeRulerColumn lnc = (LineNumberChangeRulerColumn)c;
lnc.showLineNumbers(false);
lnc.setDisplayMode(true);
lnc.setRevisionInformation(ri);
lnc.showRevisionAuthor(true);
System.out.println("ci"+lnc.isShowingChangeInformation());
System.out.println("ri"+lnc.isShowingRevisionInformation());
}
}
但是 ri(RevisionInformation)从何而来?我试图创建一个没有运气,因为它不允许我创建一个修订?请帮忙。东道国
visionInformation ri = new RevisionInformation();
Revision r = new Revision();
r.addRange(new LineRange(1,10));
ri.addRevision(r);