From 1b1c505fd92491a2f355b460d9de060673168d56 Mon Sep 17 00:00:00 2001 From: Michael Lindo Date: Fri, 2 Mar 2012 12:35:39 -0500 Subject: [PATCH] Bug 370762 - Adding support for Remote Semantic Highlighting in the Remote C/C++ Editor - more changes from Mike --- .../cdt/internal/ui/editor/SemanticHighlightingManager.java | 6 +++--- .../internal/ui/editor/SemanticHighlightingReconciler.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingManager.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingManager.java index 4eef256b4e1..ee3c9eca6bc 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingManager.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingManager.java @@ -560,7 +560,7 @@ public class SemanticHighlightingManager implements IPropertyChangeListener { return refreshNeeded; } - private void adaptToEnablementChange(HighlightingStyle highlighting, PropertyChangeEvent event) { + protected void adaptToEnablementChange(HighlightingStyle highlighting, PropertyChangeEvent event) { Object value= event.getNewValue(); boolean eventValue; if (value instanceof Boolean) @@ -572,7 +572,7 @@ public class SemanticHighlightingManager implements IPropertyChangeListener { highlighting.setEnabled(eventValue); } - private void adaptToTextForegroundChange(HighlightingStyle highlighting, PropertyChangeEvent event) { + protected void adaptToTextForegroundChange(HighlightingStyle highlighting, PropertyChangeEvent event) { RGB rgb= null; Object value= event.getNewValue(); @@ -597,7 +597,7 @@ public class SemanticHighlightingManager implements IPropertyChangeListener { } } - private void adaptToTextStyleChange(HighlightingStyle highlighting, PropertyChangeEvent event, int styleAttribute) { + protected void adaptToTextStyleChange(HighlightingStyle highlighting, PropertyChangeEvent event, int styleAttribute) { boolean eventValue= false; Object value= event.getNewValue(); if (value instanceof Boolean) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingReconciler.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingReconciler.java index 044615618de..1e8b3eb3133 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingReconciler.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingReconciler.java @@ -425,7 +425,7 @@ public class SemanticHighlightingReconciler implements ICReconcilingListener { * @param addedPositions the added positions * @param removedPositions the removed positions */ - private void updatePresentation(TextPresentation textPresentation, List addedPositions, List removedPositions) { + protected void updatePresentation(TextPresentation textPresentation, List addedPositions, List removedPositions) { Runnable runnable= fJobPresenter.createUpdateRunnable(textPresentation, addedPositions, removedPositions); if (runnable == null) return;