Class ColorProvider

java.lang.Object
org.libreoffice.ide.eclipse.core.editors.utils.ColorProvider

public class ColorProvider extends Object
This class provides colors of the editor to all the other objects.
  • Field Details

    • mColorTable

      protected Map<String,org.eclipse.swt.graphics.Color> mColorTable
  • Constructor Details

    • ColorProvider

      public ColorProvider()
      Default constructor getting the preferences.
  • Method Details

    • dispose

      public void dispose()
      Disposing the color provider.
    • getColor

      public org.eclipse.swt.graphics.Color getColor(String colorString)
      Returns the color corresponding to the given name.
      Parameters:
      colorString - name of the color to get
      Returns:
      the color from the preferences or the eclipse default color