Class ColorProvider
- java.lang.Object
-
- org.libreoffice.ide.eclipse.core.editors.utils.ColorProvider
-
public class ColorProvider extends java.lang.ObjectThis class provides colors of the editor to all the other objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,org.eclipse.swt.graphics.Color>mColorTable
-
Constructor Summary
Constructors Constructor Description ColorProvider()Default constructor getting the preferences.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposing the color provider.org.eclipse.swt.graphics.ColorgetColor(java.lang.String pColorString)Returns the color corresponding to the given name.
-
-
-
Method Detail
-
dispose
public void dispose()
Disposing the color provider.
-
getColor
public org.eclipse.swt.graphics.Color getColor(java.lang.String pColorString)
Returns the color corresponding to the given name.- Parameters:
pColorString- name of the color to get- Returns:
- the color from the preferences or the eclipse default color
-
-