Package org.eclipse.jdt.ui.text

Examples of org.eclipse.jdt.ui.text.IColorManagerExtension


            String property = event.getProperty();
            Color color = _colorManager.getColor(property);

            if (((color == null) || !rgb.equals(color.getRGB()))
                    && _colorManager instanceof IColorManagerExtension) {
                IColorManagerExtension ext = (IColorManagerExtension) _colorManager;
                ext.unbindColor(property);
                ext.bindColor(property, rgb);
                color = _colorManager.getColor(property);
            }

            TextAttribute oldAttr = highlighting.getTextAttribute();
            highlighting.setTextAttribute(new TextAttribute(color, oldAttr
View Full Code Here


        if ((_colorManager != null) && (colorKey != null)
                && (_colorManager.getColor(colorKey) == null)) {
            RGB rgb = PreferenceConverter.getColor(_preferenceStore, colorKey);

            if (_colorManager instanceof IColorManagerExtension) {
                IColorManagerExtension ext = (IColorManagerExtension) _colorManager;
                ext.unbindColor(colorKey);
                ext.bindColor(colorKey, rgb);
            }
        }
    }
View Full Code Here

      String property = event.getProperty();
      Color color = fColorManager.getColor(property);

      if ((color == null || !rgb.equals(color.getRGB()))
          && fColorManager instanceof IColorManagerExtension) {
        IColorManagerExtension ext = (IColorManagerExtension) fColorManager;
        ext.unbindColor(property);
        ext.bindColor(property, rgb);
        color = fColorManager.getColor(property);
      }

      TextAttribute oldAttr = highlighting.getTextAttribute();
      highlighting.setTextAttribute(new TextAttribute(color, oldAttr
View Full Code Here

  private void addColor(String colorKey) {
    if (fColorManager != null && colorKey != null
        && fColorManager.getColor(colorKey) == null) {
      RGB rgb = PreferenceConverter.getColor(fPreferenceStore, colorKey);
      if (fColorManager instanceof IColorManagerExtension) {
        IColorManagerExtension ext = (IColorManagerExtension) fColorManager;
        ext.unbindColor(colorKey);
        ext.bindColor(colorKey, rgb);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.ui.text.IColorManagerExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.