Mercurial > projects > dwt-addons
diff dwtx/jface/text/revisions/IRevisionRulerColumnExtension.d @ 158:25f1f92fa3df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 26 Aug 2008 02:46:34 +0200 |
parents | 75302ef3f92f |
children | 1a5b8f8129df |
line wrap: on
line diff
--- a/dwtx/jface/text/revisions/IRevisionRulerColumnExtension.d Mon Aug 25 19:06:44 2008 +0200 +++ b/dwtx/jface/text/revisions/IRevisionRulerColumnExtension.d Tue Aug 26 02:46:34 2008 +0200 @@ -26,6 +26,11 @@ import dwtx.core.runtime.Assert; import dwtx.jface.viewers.ISelectionProvider; + static this(){ + IRevisionRulerColumnExtension.AUTHOR= new IRevisionRulerColumnExtension.RenderingMode("Author"); //$NON-NLS-1$ + IRevisionRulerColumnExtension.AGE= new IRevisionRulerColumnExtension.RenderingMode("Age"); //$NON-NLS-1$ + IRevisionRulerColumnExtension.AUTHOR_SHADED_BY_AGE= new IRevisionRulerColumnExtension.RenderingMode("Both"); //$NON-NLS-1$ + } /** * Extension interface for {@link IRevisionRulerColumn}. @@ -33,12 +38,12 @@ * Introduces the ability to register a selection listener on revisions and configurable rendering * modes. * </p> - * + * * @see IRevisionRulerColumn * @since 3.3 */ public interface IRevisionRulerColumnExtension { - + /** * Rendering mode type-safe enum. */ @@ -56,11 +61,11 @@ return fName; } } - + /** * Rendering mode that assigns a unique color to each revision author. */ - RenderingMode AUTHOR= new RenderingMode("Author"); //$NON-NLS-1$ + static const RenderingMode AUTHOR; /** * Rendering mode that assigns colors to revisions by their age. * <p> @@ -68,58 +73,58 @@ * The coloring scheme can change in future releases. * </p> */ - RenderingMode AGE= new RenderingMode("Age"); //$NON-NLS-1$ + static const RenderingMode AGE; /** * Rendering mode that assigns unique colors per revision author and - * uses different color intensity depending on the age. + * uses different color intensity depending on the age. * <p> * Currently it selects lighter colors for older revisions and more intense * colors for more recent revisions. * The coloring scheme can change in future releases. * </p> */ - RenderingMode AUTHOR_SHADED_BY_AGE= new RenderingMode("Both"); //$NON-NLS-1$ + static const RenderingMode AUTHOR_SHADED_BY_AGE; /** * Changes the rendering mode and triggers redrawing if needed. - * + * * @param mode the rendering mode */ void setRevisionRenderingMode(RenderingMode mode); - + /** * Enables showing the revision id. - * + * * @param show <code>true</code> to show the revision, <code>false</code> to hide it */ void showRevisionId(bool show); - + /** * Enables showing the revision author. - * + * * @param show <code>true</code> to show the author, <code>false</code> to hide it */ void showRevisionAuthor(bool show); - + /** * Returns the revision selection provider. - * + * * @return the revision selection provider */ ISelectionProvider getRevisionSelectionProvider(); - + /** * Adds a revision listener that will be notified when the displayed revision information * changes. - * + * * @param listener the listener to add */ void addRevisionListener(IRevisionListener listener); - + /** * Removes a previously registered revision listener; nothing happens if <code>listener</code> * was not registered with the receiver. - * + * * @param listener the listener to remove */ void removeRevisionListener(IRevisionListener listener);