comparison dwtx/jface/text/revisions/IRevisionRulerColumnExtension.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents 25f1f92fa3df
children
comparison
equal deleted inserted replaced
161:f8d52b926852 162:1a5b8f8129df
25 25
26 import dwtx.core.runtime.Assert; 26 import dwtx.core.runtime.Assert;
27 import dwtx.jface.viewers.ISelectionProvider; 27 import dwtx.jface.viewers.ISelectionProvider;
28 28
29 static this(){ 29 static this(){
30 IRevisionRulerColumnExtension.AUTHOR= new IRevisionRulerColumnExtension.RenderingMode("Author"); //$NON-NLS-1$ 30 IRevisionRulerColumnExtension_AUTHOR= new IRevisionRulerColumnExtension_RenderingMode("Author"); //$NON-NLS-1$
31 IRevisionRulerColumnExtension.AGE= new IRevisionRulerColumnExtension.RenderingMode("Age"); //$NON-NLS-1$ 31 IRevisionRulerColumnExtension_AGE= new IRevisionRulerColumnExtension_RenderingMode("Age"); //$NON-NLS-1$
32 IRevisionRulerColumnExtension.AUTHOR_SHADED_BY_AGE= new IRevisionRulerColumnExtension.RenderingMode("Both"); //$NON-NLS-1$ 32 IRevisionRulerColumnExtension_AUTHOR_SHADED_BY_AGE= new IRevisionRulerColumnExtension_RenderingMode("Both"); //$NON-NLS-1$
33 } 33 }
34
35 /**
36 * Extension interface for {@link IRevisionRulerColumn}.
37 * <p>
38 * Introduces the ability to register a selection listener on revisions and configurable rendering
39 * modes.
40 * </p>
41 *
42 * @see IRevisionRulerColumn
43 * @since 3.3
44 */
45 public interface IRevisionRulerColumnExtension {
46 34
47 /** 35 /**
48 * Rendering mode type-safe enum. 36 * Rendering mode type-safe enum.
49 */ 37 */
50 final class RenderingMode { 38 final class RenderingMode {
59 */ 47 */
60 public String name() { 48 public String name() {
61 return fName; 49 return fName;
62 } 50 }
63 } 51 }
52 alias RenderingMode IRevisionRulerColumnExtension_RenderingMode;
53
64 54
65 /** 55 /**
66 * Rendering mode that assigns a unique color to each revision author. 56 * Rendering mode that assigns a unique color to each revision author.
67 */ 57 */
68 static const RenderingMode AUTHOR; 58 static const RenderingMode IRevisionRulerColumnExtension_AUTHOR;
69 /** 59 /**
70 * Rendering mode that assigns colors to revisions by their age. 60 * Rendering mode that assigns colors to revisions by their age.
71 * <p> 61 * <p>
72 * Currently the most recent revision is red, the oldest is a faint yellow. 62 * Currently the most recent revision is red, the oldest is a faint yellow.
73 * The coloring scheme can change in future releases. 63 * The coloring scheme can change in future releases.
74 * </p> 64 * </p>
75 */ 65 */
76 static const RenderingMode AGE; 66 static const RenderingMode IRevisionRulerColumnExtension_AGE;
77 /** 67 /**
78 * Rendering mode that assigns unique colors per revision author and 68 * Rendering mode that assigns unique colors per revision author and
79 * uses different color intensity depending on the age. 69 * uses different color intensity depending on the age.
80 * <p> 70 * <p>
81 * Currently it selects lighter colors for older revisions and more intense 71 * Currently it selects lighter colors for older revisions and more intense
82 * colors for more recent revisions. 72 * colors for more recent revisions.
83 * The coloring scheme can change in future releases. 73 * The coloring scheme can change in future releases.
84 * </p> 74 * </p>
85 */ 75 */
86 static const RenderingMode AUTHOR_SHADED_BY_AGE; 76 static const RenderingMode IRevisionRulerColumnExtension_AUTHOR_SHADED_BY_AGE;
77
78 /**
79 * Extension interface for {@link IRevisionRulerColumn}.
80 * <p>
81 * Introduces the ability to register a selection listener on revisions and configurable rendering
82 * modes.
83 * </p>
84 *
85 * @see IRevisionRulerColumn
86 * @since 3.3
87 */
88 public interface IRevisionRulerColumnExtension {
87 89
88 /** 90 /**
89 * Changes the rendering mode and triggers redrawing if needed. 91 * Changes the rendering mode and triggers redrawing if needed.
90 * 92 *
91 * @param mode the rendering mode 93 * @param mode the rendering mode