boolean isSimpleDetailsViewActivated;
- Composite dbSettings ;
boolean isAllowOverride;
boolean isShowTaxon;
boolean isSecDetailsActivated;
boolean isShowNameRelationship;
boolean isShowHybrid;
boolean isShowNameApprobiation;
- NameDetailsConfigurator nameDetailsConfig = null;
+ private NameDetailsConfigurator nameDetailsConfig = null;
@Override
protected Control createContents(Composite parent) {
if (nameDetailsConfig == null){
nameDetailsConfig = new NameDetailsConfigurator(false);
}
+
final Button activateCheckButton = new Button(parent, SWT.CHECK);
+ final Button allowLocalPreference = new Button(parent, SWT.CHECK);
+ Composite dbSettings = new Composite(parent, SWT.NONE);
+
activateCheckButton.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));
activateCheckButton.setText(Messages.NameDetailsViewConfiguration_activateSimpleDetailsView);
isSimpleDetailsViewActivated = nameDetailsConfig.isSimpleDetailsViewActivated();
});
+// boolean isUseLocalPreference = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ALLOW_OVERRIDE_NAME_DETAILS);
+ allowLocalPreference.setText(Messages.DatabasePreferencesPage_UseLocalPreferences);
+ isAllowOverride = nameDetailsConfig.isAllowOverride();
+ allowLocalPreference.setSelection(isAllowOverride);
+ allowLocalPreference.addSelectionListener(new SelectionAdapter(){
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ isAllowOverride = allowLocalPreference.getSelection();
+
+ }
+ });
- dbSettings = new Composite(parent, SWT.NONE);
dbSettings.setLayout(new GridLayout());
dbSettings.setVisible(isSimpleDetailsViewActivated);
// Table table = new Table(dbSettings,SWT.BORDER | SWT.CHECK);
// TableColumn tableColumnAllowOverride = new TableColumn(table, SWT.CENTER);
-
- final Button allowLocalPreference = new Button(dbSettings, SWT.CHECK);
-// boolean isUseLocalPreference = PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.ALLOW_OVERRIDE_NAME_DETAILS);
- allowLocalPreference.setText(Messages.DatabasePreferencesPage_UseLocalPreferences);
- isAllowOverride = nameDetailsConfig.isAllowOverride();
- allowLocalPreference.setSelection(isAllowOverride);
- allowLocalPreference.addSelectionListener(new SelectionAdapter(){
- @Override
- public void widgetSelected(SelectionEvent e) {
- isAllowOverride = allowLocalPreference.getSelection();
-
- }
- });
Label separator= new Label(dbSettings, SWT.HORIZONTAL | SWT.SEPARATOR);
separator.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
final Button showTaxon = new Button(dbSettings, SWT.CHECK);