org.openoffice.ide.eclipse.core.editors
Class ColorProvider

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.editors.ColorProvider

public class ColorProvider
extends java.lang.Object

This class provides colors of the editor to all the other objects.

Author:
cbosdonnat

Field Summary
protected  java.util.Map<java.lang.String,org.eclipse.swt.graphics.Color> mColorTable
           
 
Constructor Summary
ColorProvider()
          Default constructor getting the preferences.
 
Method Summary
 void dispose()
          Disposing the color provider.
 org.eclipse.swt.graphics.Color getColor(java.lang.String pColorString)
          Returns the color corresponding to the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mColorTable

protected java.util.Map<java.lang.String,org.eclipse.swt.graphics.Color> mColorTable
Constructor Detail

ColorProvider

public ColorProvider()
Default constructor getting the preferences.

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