@Override protected void doLoad() { super.doLoad(); if (Codec.XUGGLER .name() .equals(getPreferenceStore().getString(PreferenceConstants.ENCODING_CODEC)) && !XugglerEncoder.isInstalled()) getPage().setErrorMessage(XUGGLER_NOT_INSTALLED_MESSAGE); }
public static void checkXugglerInstallationOnPropertyChange( FieldEditorPreferencePage page, PropertyChangeEvent event) { if (event.getSource() instanceof FieldEditor) { FieldEditor field = (FieldEditor) event.getSource(); if (field.getPreferenceName().equals(PreferenceConstants.ENCODING_CODEC)) { if (event.getNewValue() instanceof String) { String newValue = (String) event.getNewValue(); if (newValue.equals(Codec.XUGGLER.name())) { checkXugglerInstallation(page); } else { page.setErrorMessage(null); } } } } }