Examples of ISharedTextColors


Examples of org.eclipse.jface.text.source.ISharedTextColors

 
  private void updateForegroundColor(IPreferenceStore store, IVerticalRulerColumn column) {
    RGB rgb=  getColorFromStore(store, FG_COLOR_KEY);
    if (rgb == null)
      rgb= new RGB(0, 0, 0);
    ISharedTextColors sharedColors= getSharedColors();
    if (column instanceof LineNumberRulerColumn)
      ((LineNumberRulerColumn) column).setForeground(sharedColors.getColor(rgb));
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

    RGB rgb;
    if (store.getBoolean(USE_DEFAULT_BG_KEY))
      rgb= null;
    else
      rgb= getColorFromStore(store, BG_COLOR_KEY);
    ISharedTextColors sharedColors= getSharedColors();
    if (column instanceof LineNumberRulerColumn)
      ((LineNumberRulerColumn) column).setBackground(sharedColors.getColor(rgb));
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

    return viewer;
  }

  protected ISharedTextColors getSharedColors() {
    ISharedTextColors sharedColors= EditorsPlugin.getDefault().getSharedTextColors();
    return sharedColors;
  }
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

    if(index>=0){     
      String editor = editorChooser.getItem(index);
      Map<String,TextStyle> styleMap = editorMap.get(editor);
     
     
      ISharedTextColors fSharedColors = EditorsPlugin.getDefault().getSharedTextColors();   
     
      String prefFile = configLocation+Path.SEPARATOR+editor+Path.SEPARATOR+editor+".pref";
      PresentationMapGenerator prefGen = new PresentationMapGenerator(prefFile, fSharedColors);
      Map<String, TextAttribute>prefMap = prefGen.getPresentationMap();
     
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

  private void setDefaultPreferences(String editorSuffix){
    IPreferenceStore store = EditorPlugin.getDefault().getPreferenceStore();
   
    String configLocation = EditorPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.fieldName);
   
    ISharedTextColors fSharedColors = EditorsPlugin.getDefault().getSharedTextColors();   
   
    String prefFile = configLocation + Path.SEPARATOR+editorSuffix + Path.SEPARATOR+editorSuffix+".pref";
    PresentationMapGenerator prefGen = new PresentationMapGenerator(prefFile, fSharedColors);
    Map<String, TextAttribute> prefMap = prefGen.getPresentationMap();
   
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

  protected IHandlerService getHandlerService() {
    return CommonUtils.getService(PlatformUI.getWorkbench(), IHandlerService.class);
  }

  private SourceViewerDecorationSupport configureAnnotationPreferences() {
    ISharedTextColors textColors = EditorsUI.getSharedTextColors();
    IAnnotationAccess annotationAccess = new DefaultMarkerAnnotationAccess();
    final SourceViewerDecorationSupport support = new SourceViewerDecorationSupport(
        sourceViewer, null, annotationAccess, textColors);

    List annotationPreferences = new MarkerAnnotationPreferences()
View Full Code Here

Examples of org.eclipse.jface.text.source.ISharedTextColors

        return viewer;
    }

    @Override
    protected ISharedTextColors getSharedColors() {
        ISharedTextColors sharedColors = ForceIdeUIPlugin.getSharedTextColors();
        return sharedColors;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.