Mercurial > projects > dwt-addons
comparison dwtx/jface/text/source/IChangeRulerColumn.d @ 129:eb30df5ca28b
Added JFace Text sources
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 23 Aug 2008 19:10:48 +0200 |
parents | |
children | c4fb132a086c |
comparison
equal
deleted
inserted
replaced
128:8df1d4193877 | 129:eb30df5ca28b |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2005 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module dwtx.jface.text.source.IChangeRulerColumn; | |
14 | |
15 import dwt.dwthelper.utils; | |
16 | |
17 import dwt.graphics.Color; | |
18 | |
19 /** | |
20 * An <code>IChangeRulerColumn</code> can display quick diff information. | |
21 * | |
22 * @since 3.0 | |
23 */ | |
24 public interface IChangeRulerColumn : IVerticalRulerColumn, IVerticalRulerInfoExtension { | |
25 | |
26 /** The ID under which the quick diff model is registered with a document's annotation model. */ | |
27 public static final String QUICK_DIFF_MODEL_ID= "diff"; //$NON-NLS-1$ | |
28 | |
29 /** | |
30 * Sets the hover of this ruler column. | |
31 * | |
32 * @param hover the hover that will produce hover information text for this ruler column | |
33 */ | |
34 public abstract void setHover(IAnnotationHover hover); | |
35 | |
36 /** | |
37 * Sets the background color for normal lines. The color has to be disposed of by the caller when | |
38 * the receiver is no longer used. | |
39 * | |
40 * @param backgroundColor the new color to be used as standard line background | |
41 */ | |
42 public abstract void setBackground(Color backgroundColor); | |
43 | |
44 /** | |
45 * Sets the background color for added lines. The color has to be disposed of by the caller when | |
46 * the receiver is no longer used. | |
47 * | |
48 * @param addedColor the new color to be used for the added lines background | |
49 */ | |
50 public abstract void setAddedColor(Color addedColor); | |
51 | |
52 /** | |
53 * Sets the background color for changed lines. The color has to be disposed of by the caller when | |
54 * the receiver is no longer used. | |
55 * | |
56 * @param changedColor the new color to be used for the changed lines background | |
57 */ | |
58 public abstract void setChangedColor(Color changedColor); | |
59 | |
60 /** | |
61 * Sets the color for the deleted lines indicator. The color has to be disposed of by the caller when | |
62 * the receiver is no longer used. | |
63 * | |
64 * @param deletedColor the new color to be used for the deleted lines indicator. | |
65 */ | |
66 public abstract void setDeletedColor(Color deletedColor); | |
67 } |