Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » RevisionInformation or ChangeInformation on LineNumberChangeRulerColumn (Add Author as textual output or)
RevisionInformation or ChangeInformation on LineNumberChangeRulerColumn [message #889965] Wed, 20 June 2012 08:25
Paul Ehrlich is currently offline Paul Ehrlich
Messages: 2
Registered: June 2012
Junior Member
Hello,
I'm trying to show the author or the ChangeInformation on a LineNumberChangeRulerColumn.


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());	
	}			
}


But where does the ri (RevisionInformation) come from?
I tried to create one without luck, since it does not allow me to create a Revision? Pls help. Paul

visionInformation ri = new RevisionInformation();
Revision r = new Revision();
r.addRange(new LineRange(1,10));
ri.addRevision(r);



Previous Topic:VerticalRuler
Next Topic:Hiding text in Editor
Goto Forum:
  


Current Time: Sun Apr 20 23:02:19 EDT 2014

Powered by FUDForum. Page generated in 0.04609 seconds