1 11 package org.eclipse.jface.text.revisions; 12 13 import org.eclipse.core.runtime.Assert; 14 15 import org.eclipse.jface.viewers.ISelectionProvider; 16 17 18 28 public interface IRevisionRulerColumnExtension { 29 30 33 final class RenderingMode { 34 private final String fName; 35 private RenderingMode(String name) { 36 Assert.isLegal(name != null); 37 fName= name; 38 } 39 43 public String name() { 44 return fName; 45 } 46 } 47 48 51 RenderingMode AUTHOR= new RenderingMode("Author"); 59 RenderingMode AGE= new RenderingMode("Age"); 69 RenderingMode AUTHOR_SHADED_BY_AGE= new RenderingMode("Both"); 71 76 void setRevisionRenderingMode(RenderingMode mode); 77 78 83 void showRevisionId(boolean show); 84 85 90 void showRevisionAuthor(boolean show); 91 92 97 ISelectionProvider getRevisionSelectionProvider(); 98 99 105 void addRevisionListener(IRevisionListener listener); 106 107 113 void removeRevisionListener(IRevisionListener listener); 114 } 115 | Popular Tags |