org.eclipse.jface.text.source.ISharedTextColors Java Examples
The following examples show how to use
org.eclipse.jface.text.source.ISharedTextColors.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseEditor.java From Pydev with Eclipse Public License 1.0 | 6 votes |
@Override protected IOverviewRuler createOverviewRuler(ISharedTextColors sharedColors) { // Note: create the minimap overview ruler regardless of whether it should be shown or not // (the setting to show it will control what's drawn). if (MinimapOverviewRulerPreferencesPage.useMinimap()) { IOutlineModel outlineModel = (IOutlineModel) this.getAdapter(IOutlineModel.class); IOverviewRuler ruler = new MinimapOverviewRuler(getAnnotationAccess(), sharedColors, outlineModel); Iterator e = getAnnotationPreferences().getAnnotationPreferences().iterator(); while (e.hasNext()) { AnnotationPreference preference = (AnnotationPreference) e.next(); if (preference.contributesToHeader()) { ruler.addHeaderAnnotationType(preference.getAnnotationType()); } } return ruler; } else { return super.createOverviewRuler(sharedColors); } }
Example #2
Source File: MinimapOverviewRuler.java From Pydev with Eclipse Public License 1.0 | 5 votes |
public MinimapOverviewRuler(IAnnotationAccess annotationAccess, ISharedTextColors sharedColors, IOutlineModel outlineModel) { super(annotationAccess, MinimapOverviewRulerPreferencesPage.getMinimapWidth(), sharedColors); this.fOutlineModel = outlineModel; propertyListener = new IPropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent event) { if (MinimapOverviewRulerPreferencesPage.MINIMAP_WIDTH.equals(event.getProperty())) { updateWidth(); } } }; if (outlineModel != null) { modelListener = new ICallbackListener<IOutlineModel>() { @Override public Object call(IOutlineModel obj) { lastModelChange = System.currentTimeMillis(); update(); return null; } }; ICallbackWithListeners<IOutlineModel> onModelChangedListener = outlineModel.getOnModelChangedCallback(); onModelChangedListener.registerListener(modelListener); } }
Example #3
Source File: EmbeddedEditorFactory.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
protected ISharedTextColors getSharedColors() { return EditorsUI.getSharedTextColors(); }
Example #4
Source File: StyledTextXtextAdapter.java From statecharts with Eclipse Public License 1.0 | 4 votes |
protected ISharedTextColors getSharedColors() { return EditorsPlugin.getDefault().getSharedTextColors(); }
Example #5
Source File: XMLFormatterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public SourceViewerConfiguration createSimpleSourceViewerConfiguration(ISharedTextColors colorManager, IPreferenceStore preferenceStore, ITextEditor editor, boolean configureFormatter) { return new XMLSourceViewerConfiguration(preferenceStore, (AbstractThemeableEditor) editor); }
Example #6
Source File: CSSFormatterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public SourceViewerConfiguration createSimpleSourceViewerConfiguration(ISharedTextColors colorManager, IPreferenceStore preferenceStore, ITextEditor editor, boolean configureFormatter) { return new CSSSourceViewerConfiguration(preferenceStore, (AbstractThemeableEditor) editor); }
Example #7
Source File: JSFormatterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public SourceViewerConfiguration createSimpleSourceViewerConfiguration(ISharedTextColors colorManager, IPreferenceStore preferenceStore, ITextEditor editor, boolean configureFormatter) { return new JSSourceViewerConfiguration(preferenceStore, (AbstractThemeableEditor) editor); }
Example #8
Source File: IScriptFormatterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
SourceViewerConfiguration createSimpleSourceViewerConfiguration(ISharedTextColors colorManager, IPreferenceStore preferenceStore, ITextEditor editor, boolean configureFormatter);
Example #9
Source File: HTMLFormatterFactory.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
public SourceViewerConfiguration createSimpleSourceViewerConfiguration(ISharedTextColors colorManager, IPreferenceStore preferenceStore, ITextEditor editor, boolean configureFormatter) { return new HTMLSourceViewerConfiguration(preferenceStore, (AbstractThemeableEditor) editor); }
Example #10
Source File: CommonLineNumberChangeRulerColumn.java From APICloud-Studio with GNU General Public License v3.0 | 4 votes |
/** * Creates a new instance. * * @param sharedColors the shared colors provider to use */ public CommonLineNumberChangeRulerColumn(ISharedTextColors sharedColors) { Assert.isNotNull(sharedColors); fRevisionPainter= new RevisionPainter(this, sharedColors); fDiffPainter= new DiffPainter(this, sharedColors); }
Example #11
Source File: AbstractProcessMessageConsole.java From goclipse with Eclipse Public License 1.0 | 4 votes |
protected ISharedTextColors getColorManager() { return ColorManager.getDefault(); }
Example #12
Source File: CopiedOverviewRuler.java From Pydev with Eclipse Public License 1.0 | 3 votes |
/** * Constructs a overview ruler of the given width using the given annotation * access and the given color manager. * * @param annotationAccess the annotation access * @param width the width of the vertical ruler * @param sharedColors the color manager * @param discolorTemporaryAnnotation <code>true</code> if temporary annotations should be discolored * @since 3.4 */ public CopiedOverviewRuler(IAnnotationAccess annotationAccess, int width, ISharedTextColors sharedColors, boolean discolorTemporaryAnnotation) { fAnnotationAccess = annotationAccess; fWidth = width; fSharedTextColors = sharedColors; fIsTemporaryAnnotationDiscolored = discolorTemporaryAnnotation; }
Example #13
Source File: CopiedOverviewRuler.java From Pydev with Eclipse Public License 1.0 | 2 votes |
/** * Constructs a overview ruler of the given width using the given annotation access and the given * color manager. * <p><strong>Note:</strong> As of 3.4, temporary annotations are no longer discolored. * Use {@link #OverviewRuler(IAnnotationAccess, int, ISharedTextColors, boolean)} if you * want to keep the old behavior.</p> * * @param annotationAccess the annotation access * @param width the width of the vertical ruler * @param sharedColors the color manager */ public CopiedOverviewRuler(IAnnotationAccess annotationAccess, int width, ISharedTextColors sharedColors) { this(annotationAccess, width, sharedColors, false); }