Class ColorProvider


  • public class ColorProvider
    extends java.lang.Object
    This 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
      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