summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Lindo2012-03-02 10:34:20 (EST)
committerVivian Kong2012-03-02 10:34:20 (EST)
commit0e37eb9577832625bd6a71a74cec5fc0304f68d0 (patch)
tree29ef093530b87d13299b698d645d7ba7cc60a8bc
parentec1fcd11cb83060dec21e061e450cadb677d0ebd (diff)
downloadorg.eclipse.cdt-0e37eb9577832625bd6a71a74cec5fc0304f68d0.zip
org.eclipse.cdt-0e37eb9577832625bd6a71a74cec5fc0304f68d0.tar.gz
org.eclipse.cdt-0e37eb9577832625bd6a71a74cec5fc0304f68d0.tar.bz2
Bug 370762 - Adding support for Remote Semantic Highlighting in the
Remote C/C++ Editor
-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 700ffff..e8709f8 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
@@ -559,7 +559,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)
@@ -571,7 +571,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();
@@ -596,7 +596,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 d08ba31..c838274 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
@@ -422,7 +422,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;