summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lindo2012-03-02 12:35:39 (EST)
committerVivian Kong2012-03-02 12:35:39 (EST)
commit1b1c505fd92491a2f355b460d9de060673168d56 (patch)
treec0d3f0480b00c64441821e9e8e5a0f0580795a48
parenta4153db426af3de6fe53669c27637c23ad3349f9 (diff)
downloadorg.eclipse.cdt-1b1c505fd92491a2f355b460d9de060673168d56.zip
org.eclipse.cdt-1b1c505fd92491a2f355b460d9de060673168d56.tar.gz
org.eclipse.cdt-1b1c505fd92491a2f355b460d9de060673168d56.tar.bz2
Bug 370762 - Adding support for Remote Semantic Highlighting in the
Remote C/C++ Editor - more changes from Mike
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingManager.java6
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightingReconciler.java2
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 4eef256..ee3c9ec 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 0446156..1e8b3eb 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<HighlightedPosition> addedPositions, List<HighlightedPosition> removedPositions) {
+ protected void updatePresentation(TextPresentation textPresentation, List<HighlightedPosition> addedPositions, List<HighlightedPosition> removedPositions) {
Runnable runnable= fJobPresenter.createUpdateRunnable(textPresentation, addedPositions, removedPositions);
if (runnable == null)
return;