mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 370762 - Adding support for Remote Semantic Highlighting in the
Remote C/C++ Editor - more changes from Mike
This commit is contained in:
parent
a4153db426
commit
1b1c505fd9
2 changed files with 4 additions and 4 deletions
|
@ -560,7 +560,7 @@ public class SemanticHighlightingManager implements IPropertyChangeListener {
|
||||||
return refreshNeeded;
|
return refreshNeeded;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void adaptToEnablementChange(HighlightingStyle highlighting, PropertyChangeEvent event) {
|
protected void adaptToEnablementChange(HighlightingStyle highlighting, PropertyChangeEvent event) {
|
||||||
Object value= event.getNewValue();
|
Object value= event.getNewValue();
|
||||||
boolean eventValue;
|
boolean eventValue;
|
||||||
if (value instanceof Boolean)
|
if (value instanceof Boolean)
|
||||||
|
@ -572,7 +572,7 @@ public class SemanticHighlightingManager implements IPropertyChangeListener {
|
||||||
highlighting.setEnabled(eventValue);
|
highlighting.setEnabled(eventValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void adaptToTextForegroundChange(HighlightingStyle highlighting, PropertyChangeEvent event) {
|
protected void adaptToTextForegroundChange(HighlightingStyle highlighting, PropertyChangeEvent event) {
|
||||||
RGB rgb= null;
|
RGB rgb= null;
|
||||||
|
|
||||||
Object value= event.getNewValue();
|
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;
|
boolean eventValue= false;
|
||||||
Object value= event.getNewValue();
|
Object value= event.getNewValue();
|
||||||
if (value instanceof Boolean)
|
if (value instanceof Boolean)
|
||||||
|
|
|
@ -425,7 +425,7 @@ public class SemanticHighlightingReconciler implements ICReconcilingListener {
|
||||||
* @param addedPositions the added positions
|
* @param addedPositions the added positions
|
||||||
* @param removedPositions the removed 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);
|
Runnable runnable= fJobPresenter.createUpdateRunnable(textPresentation, addedPositions, removedPositions);
|
||||||
if (runnable == null)
|
if (runnable == null)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue