private void storeDefault() { LocalizedPropertiesPlugin.getDefault() .getPreferenceStore() .setValue( PreferenceConstants.WILDCARD_PATH_DEFAULT_INDEX_PREFERENCES, listControl.getSelectionIndex()); }
protected void refreshValidState() { super.refreshValidState(); int defaultIndex = LocalizedPropertiesPlugin.getDefault() .getPreferenceStore() .getInt(PreferenceConstants.WILDCARD_PATH_DEFAULT_INDEX_PREFERENCES); listControl.setSelection(defaultIndex); listControl.showSelection(); defaultButton.setEnabled(false); }
private void selectionChanged1() { if (listControl == null) { listControl = getListControl(parent); } int defaultIndex = LocalizedPropertiesPlugin.getDefault() .getPreferenceStore() .getInt(PreferenceConstants.WILDCARD_PATH_DEFAULT_INDEX_PREFERENCES); defaultButton.setEnabled(listControl.getSelectionIndex() != defaultIndex); }