/** * @return <code>true</code> if Semantic Highlighting is enabled. * * @since 3.0 */ private boolean isSemanticHighlightingEnabled() { return SemanticHighlightings.isEnabled(getPreferenceStore()); }
/** * @return <code>true</code> if Semantic Highlighting is enabled. * * @since 3.0 */ private boolean isSemanticHighlightingEnabled() { return SemanticHighlightings.isEnabled(getPreferenceStore()); }
/** * @return <code>true</code> if Semantic Highlighting is enabled. * * @since 3.0 */ private boolean isSemanticHighlightingEnabled() { return SemanticHighlightings.isEnabled(getPreferenceStore()); }
protected boolean isMarkingOccurrences() { IPreferenceStore store= getPreferenceStore(); return store != null && store.getBoolean(PreferenceConstants.EDITOR_MARK_OCCURRENCES); }
protected boolean isMarkingOccurrences() { IPreferenceStore store= getPreferenceStore(); return store != null && store.getBoolean(PreferenceConstants.EDITOR_MARK_OCCURRENCES); }
protected boolean isMarkingOccurrences() { IPreferenceStore store= getPreferenceStore(); return store != null && store.getBoolean(PreferenceConstants.EDITOR_MARK_OCCURRENCES); }
/** * @return true if editor breadcrumbs are enabled * @since 3.4 */ protected boolean isBreadcrumbShown() { IPreferenceStore store= getPreferenceStore(); String key= getBreadcrumbPreferenceKey(); return store != null && key != null && store.getBoolean(key); }
/** * @return true if editor breadcrumbs are enabled * @since 3.4 */ protected boolean isBreadcrumbShown() { IPreferenceStore store= getPreferenceStore(); String key= getBreadcrumbPreferenceKey(); return store != null && key != null && store.getBoolean(key); }
/** * Install Java code mining. * * @since 3.14 */ private void installJavaCodeMining() { if (fJavaCodeMiningManager == null) { fJavaCodeMiningManager= new JavaCodeMiningManager(); fJavaCodeMiningManager.install(this, (JavaSourceViewer) getSourceViewer(), getPreferenceStore()); } }
/** * Returns a new Java source viewer configuration. * * @return a new <code>JavaSourceViewerConfiguration</code> * @since 3.3 */ protected JavaSourceViewerConfiguration createJavaSourceViewerConfiguration() { JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools(); return new JavaSourceViewerConfiguration(textTools.getColorManager(), getPreferenceStore(), this, IJavaPartitions.JAVA_PARTITIONING); }
/** * Returns a new Java source viewer configuration. * * @return a new <code>JavaSourceViewerConfiguration</code> * @since 3.3 */ protected JavaSourceViewerConfiguration createJavaSourceViewerConfiguration() { JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools(); return new JavaSourceViewerConfiguration(textTools.getColorManager(), getPreferenceStore(), this, IJavaPartitions.JAVA_PARTITIONING); }
/** * Returns a new Java source viewer configuration. * * @return a new <code>JavaSourceViewerConfiguration</code> * @since 3.3 */ protected JavaSourceViewerConfiguration createJavaSourceViewerConfiguration() { JavaTextTools textTools= JavaPlugin.getDefault().getJavaTextTools(); return new JavaSourceViewerConfiguration(textTools.getColorManager(), getPreferenceStore(), this, IJavaPartitions.JAVA_PARTITIONING); }
protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) { fBracketMatcher.setSourceVersion(getPreferenceStore().getString(JavaCore.COMPILER_SOURCE)); support.setCharacterPairMatcher(fBracketMatcher); support.setMatchingCharacterPainterPreferenceKeys(MATCHING_BRACKETS, MATCHING_BRACKETS_COLOR); super.configureSourceViewerDecorationSupport(support); }
/** * Install Semantic Highlighting. * * @since 3.0 */ protected void installSemanticHighlighting() { if (fSemanticManager == null) { fSemanticManager= new SemanticHighlightingManager(); fSemanticManager.install(this, (JavaSourceViewer) getSourceViewer(), JavaPlugin.getDefault().getJavaTextTools().getColorManager(), getPreferenceStore()); } }
/** * Install Semantic Highlighting. * * @since 3.0 */ protected void installSemanticHighlighting() { if (fSemanticManager == null) { fSemanticManager= new SemanticHighlightingManager(); fSemanticManager.install(this, (JavaSourceViewer) getSourceViewer(), JavaPlugin.getDefault().getJavaTextTools().getColorManager(), getPreferenceStore()); } }
/** * Install Semantic Highlighting. * * @since 3.0 */ private void installSemanticHighlighting() { if (fSemanticManager == null) { fSemanticManager= new SemanticHighlightingManager(); fSemanticManager.install(this, (JavaSourceViewer) getSourceViewer(), JavaPlugin.getDefault().getJavaTextTools().getColorManager(), getPreferenceStore()); } }
@Override protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) { fBracketMatcher.setSourceVersion(getPreferenceStore().getString(JavaCore.COMPILER_SOURCE)); support.setCharacterPairMatcher(fBracketMatcher); support.setMatchingCharacterPainterPreferenceKeys(MATCHING_BRACKETS, MATCHING_BRACKETS_COLOR, HIGHLIGHT_BRACKET_AT_CARET_LOCATION, ENCLOSING_BRACKETS); super.configureSourceViewerDecorationSupport(support); // The base class will have already called setMarginPainterPreferenceKeys. We override it // here with more specific values for the java editor. Note that this needs to go after the // call to super since the last invocation wins. support.setMarginPainterPreferenceKeys( AbstractDecoratedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN, AbstractDecoratedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT); }
@Override protected void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) { fBracketMatcher.setSourceVersion(getPreferenceStore().getString(JavaCore.COMPILER_SOURCE)); support.setCharacterPairMatcher(fBracketMatcher); support.setMatchingCharacterPainterPreferenceKeys(MATCHING_BRACKETS, MATCHING_BRACKETS_COLOR, HIGHLIGHT_BRACKET_AT_CARET_LOCATION, ENCLOSING_BRACKETS); super.configureSourceViewerDecorationSupport(support); // The base class will have already called setMarginPainterPreferenceKeys. We override it // here with more specific values for the java editor. Note that this needs to go after the // call to super since the last invocation wins. support.setMarginPainterPreferenceKeys( AbstractDecoratedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN, AbstractDecoratedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN_COLOR, DefaultCodeFormatterConstants.FORMATTER_LINE_SPLIT); }
/** * Tells whether override indicators are shown. * * @return <code>true</code> if the override indicators are shown * @since 3.0 */ protected boolean isShowingOverrideIndicators() { AnnotationPreference preference= getAnnotationPreferenceLookup().getAnnotationPreference(OverrideIndicatorManager.ANNOTATION_TYPE); IPreferenceStore store= getPreferenceStore(); return getBoolean(store, preference.getHighlightPreferenceKey()) || getBoolean(store, preference.getVerticalRulerPreferenceKey()) || getBoolean(store, preference.getOverviewRulerPreferenceKey()) || getBoolean(store, preference.getTextPreferenceKey()); }
/** * Tells whether override indicators are shown. * * @return <code>true</code> if the override indicators are shown * @since 3.0 */ protected boolean isShowingOverrideIndicators() { AnnotationPreference preference= getAnnotationPreferenceLookup().getAnnotationPreference(OverrideIndicatorManager.ANNOTATION_TYPE); IPreferenceStore store= getPreferenceStore(); return getBoolean(store, preference.getHighlightPreferenceKey()) || getBoolean(store, preference.getVerticalRulerPreferenceKey()) || getBoolean(store, preference.getOverviewRulerPreferenceKey()) || getBoolean(store, preference.getTextPreferenceKey()); }