private Map<String, SpellingEngineDescriptor> createListModel() { SpellingEngineDescriptor[] descs= EditorsUI.getSpellingService().getSpellingEngineDescriptors(); Map<String, SpellingEngineDescriptor> map= new HashMap<>(); for (int i= 0; i < descs.length; i++) { map.put(descs[i].getId(), descs[i]); } return map; }
private Map createListModel() { SpellingEngineDescriptor[] descs= EditorsUI.getSpellingService().getSpellingEngineDescriptors(); Map map= new HashMap(); for (int i= 0; i < descs.length; i++) { map.put(descs[i].getId(), descs[i]); } return map; }
composite.setLayout(layout); if (EditorsUI.getSpellingService().getSpellingEngineDescriptors().length == 0) { Label label= new Label(composite, SWT.NONE); label.setText(TextEditorMessages.SpellingConfigurationBlock_error_not_installed);
composite.setLayout(layout); if (EditorsUI.getSpellingService().getSpellingEngineDescriptors().length == 0) { Label label= new Label(composite, SWT.NONE); label.setText(TextEditorMessages.SpellingConfigurationBlock_error_not_installed);
boolean isInstalled= EditorsUI.getSpellingService().getSpellingEngineDescriptors().length > 0; store.setDefault(SpellingService.PREFERENCE_SPELLING_ENABLED, !isInTestMode && isInstalled); store.setDefault(SpellingService.PREFERENCE_SPELLING_ENGINE, ""); //$NON-NLS-1$
boolean isInstalled= EditorsUI.getSpellingService().getSpellingEngineDescriptors().length > 0; store.setDefault(SpellingService.PREFERENCE_SPELLING_ENABLED, isInstalled); store.setDefault(SpellingService.PREFERENCE_SPELLING_ENGINE, ""); //$NON-NLS-1$