mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix initialization of Semantic highlighting enablement checkbox
This commit is contained in:
parent
52bbe25b47
commit
d84efff6f7
1 changed files with 3 additions and 9 deletions
|
@ -474,7 +474,6 @@ class CEditorColoringConfigurationBlock extends AbstractConfigurationBlock {
|
||||||
public void performDefaults() {
|
public void performDefaults() {
|
||||||
super.performDefaults();
|
super.performDefaults();
|
||||||
|
|
||||||
fEnableSemanticHighlightingCheckbox.setSelection(getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED));
|
|
||||||
fListViewer.refresh();
|
fListViewer.refresh();
|
||||||
|
|
||||||
handleSyntaxColorListSelection();
|
handleSyntaxColorListSelection();
|
||||||
|
@ -562,12 +561,9 @@ class CEditorColoringConfigurationBlock extends AbstractConfigurationBlock {
|
||||||
|
|
||||||
addFiller(colorComposite, 1);
|
addFiller(colorComposite, 1);
|
||||||
|
|
||||||
fEnableSemanticHighlightingCheckbox= new Button(colorComposite, SWT.CHECK);
|
fEnableSemanticHighlightingCheckbox= addCheckBox(colorComposite,
|
||||||
fEnableSemanticHighlightingCheckbox.setText(PreferencesMessages.CEditorColoringConfigurationBlock_enable_semantic_highlighting);
|
PreferencesMessages.CEditorColoringConfigurationBlock_enable_semantic_highlighting,
|
||||||
gridData= new GridData(GridData.FILL_HORIZONTAL);
|
PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED, 0);
|
||||||
gridData.horizontalAlignment= GridData.BEGINNING;
|
|
||||||
gridData.horizontalSpan= 1;
|
|
||||||
fEnableSemanticHighlightingCheckbox.setLayoutData(gridData);
|
|
||||||
|
|
||||||
Label label;
|
Label label;
|
||||||
label= new Label(colorComposite, SWT.LEFT);
|
label= new Label(colorComposite, SWT.LEFT);
|
||||||
|
@ -763,8 +759,6 @@ class CEditorColoringConfigurationBlock extends AbstractConfigurationBlock {
|
||||||
public void widgetSelected(SelectionEvent e) {
|
public void widgetSelected(SelectionEvent e) {
|
||||||
HighlightingColorListItem item= getHighlightingColorListItem();
|
HighlightingColorListItem item= getHighlightingColorListItem();
|
||||||
if (item instanceof SemanticHighlightingColorListItem) {
|
if (item instanceof SemanticHighlightingColorListItem) {
|
||||||
boolean enable= fEnableSemanticHighlightingCheckbox.getSelection();
|
|
||||||
getPreferenceStore().setValue(PreferenceConstants.EDITOR_SEMANTIC_HIGHLIGHTING_ENABLED, enable);
|
|
||||||
fListViewer.refresh();
|
fListViewer.refresh();
|
||||||
handleSyntaxColorListSelection();
|
handleSyntaxColorListSelection();
|
||||||
uninstallSemanticHighlighting();
|
uninstallSemanticHighlighting();
|
||||||
|
|
Loading…
Add table
Reference in a new issue