Skip to main content


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 12:25
Paul Ehrlich is currently offline Paul EhrlichFriend
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:build plugin with command line
Goto Forum:
  


Current Time: Sat Apr 20 01:00:12 GMT 2024

Powered by FUDForum. Page generated in 0.02784 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top