Commit b68f64d0 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Fixed initialization of syntax highlighting preferences preview


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent b34a7d32
......@@ -682,7 +682,7 @@ public final class SyntaxHighlightPage extends PreferencePage implements IWorkbe
private void addTemplateText(String key, String text) {
int start = textViewer.getText().length();
textViewer.append(text);
final StyleRange range = colorManager.createStyleRangeFromPreference(key, tempstore, start, text.length());
final StyleRange range = colorManager.createStyleRangeFromPreference(key, Activator.getDefault().getPreferenceStore(), start, text.length());
textViewer.setStyleRange(range);
List<StyleRange> list = rangeMap.containsKey(key) ? rangeMap.get(key) : new ArrayList<StyleRange>();
list.add(range);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment