private void handleAnnotationListSelection() { ListItem item= getSelectedItem(); RGB rgb= PreferenceConverter.getColor(fStore, item.colorKey); fAnnotationForegroundColorEditor.setColorValue(rgb); boolean highlight= item.highlightKey == null ? false : fStore.getBoolean(item.highlightKey); boolean showInText = item.textKey == null ? false : fStore.getBoolean(item.textKey); fShowInTextCheckBox.setSelection(showInText || highlight); updateDecorationViewer(item, true); fShowInOverviewRulerCheckBox.setSelection(fStore.getBoolean(item.overviewRulerKey)); if (item.verticalRulerKey != null) { fShowInVerticalRulerCheckBox.setSelection(fStore.getBoolean(item.verticalRulerKey)); fShowInVerticalRulerCheckBox.setEnabled(true); } else { fShowInVerticalRulerCheckBox.setSelection(true); fShowInVerticalRulerCheckBox.setEnabled(false); } }
private void handleAnnotationListSelection() { ListItem item= getSelectedItem(); RGB rgb= PreferenceConverter.getColor(fStore, item.colorKey); fAnnotationForegroundColorEditor.setColorValue(rgb); boolean highlight= item.highlightKey == null ? false : fStore.getBoolean(item.highlightKey); boolean showInText = item.textKey == null ? false : fStore.getBoolean(item.textKey); fShowInTextCheckBox.setSelection(showInText || highlight); updateDecorationViewer(item, true); fShowInOverviewRulerCheckBox.setSelection(fStore.getBoolean(item.overviewRulerKey)); if (item.isNextPreviousNavigationKey != null) { fIsNextPreviousTargetCheckBox.setEnabled(true); fIsNextPreviousTargetCheckBox.setSelection(fStore.getBoolean(item.isNextPreviousNavigationKey)); } else { fIsNextPreviousTargetCheckBox.setEnabled(false); fIsNextPreviousTargetCheckBox.setSelection(false); } if (item.verticalRulerKey != null) { fShowInVerticalRulerCheckBox.setSelection(fStore.getBoolean(item.verticalRulerKey)); fShowInVerticalRulerCheckBox.setEnabled(true); } else { fShowInVerticalRulerCheckBox.setSelection(true); fShowInVerticalRulerCheckBox.setEnabled(false); } }