diff options
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java')
-rw-r--r-- | changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java index 861069d335..c00e41cc56 100644 --- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java +++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/internal/changelog/core/editors/ColorManager.java @@ -26,20 +26,20 @@ import org.eclipse.swt.widgets.Display; */ public class ColorManager { - protected Map<RGB, Color> fColorTable = new HashMap<>(10); + protected Map<RGB, Color> fColorTable = new HashMap<>(10); - public void dispose() { - for (Color color: fColorTable.values()){ - color.dispose(); - } - } + public void dispose() { + for (Color color: fColorTable.values()){ + color.dispose(); + } + } - public Color getColor(RGB rgb) { - Color color = fColorTable.get(rgb); - if (color == null) { - color = new Color(Display.getCurrent(), rgb); - fColorTable.put(rgb, color); - } - return color; - } + public Color getColor(RGB rgb) { + Color color = fColorTable.get(rgb); + if (color == null) { + color = new Color(Display.getCurrent(), rgb); + fColorTable.put(rgb, color); + } + return color; + } } |