if (isAdminPreference){
allowOverrideIsShowSpecimenRelatedIssuesButton = createAllowOverrideButton(titleComp);
allowOverrideIsShowSpecimenRelatedIssuesButton.setSelection(allowOverrideShowSpecimenRelatedIssues);
- allowOverrideIsShowSpecimenRelatedIssuesButton.setEnabled(isShowSpecimenRelatedIssues != null);
+// allowOverrideIsShowSpecimenRelatedIssuesButton.setEnabled(isShowSpecimenRelatedIssues != null);
allowOverrideIsShowSpecimenRelatedIssuesButton.addSelectionListener(new SelectionAdapter(){
@Override
public void widgetSelected(SelectionEvent e) {
if (isAdminPreference){
allowOverrideShowCollectingAreaButton = createAllowOverrideButton(composite);
allowOverrideShowCollectingAreaButton.setSelection(allowOverrideShowCollectingAreaInGeneralSection);
- allowOverrideShowCollectingAreaButton.setEnabled(isShowCollectingAreaInGeneralSection != null);
+// allowOverrideShowCollectingAreaButton.setEnabled(isShowCollectingAreaInGeneralSection != null);
allowOverrideShowCollectingAreaButton.addSelectionListener(new SelectionAdapter(){
@Override
public void widgetSelected(SelectionEvent e) {
if (isAdminPreference){
allowOverridesDeterminationOnlyForFieldUnitsButton = createAllowOverrideButton(composite);
allowOverridesDeterminationOnlyForFieldUnitsButton.setSelection(allowOverrideDeterminationOnlyForFieldUnits);
- allowOverridesDeterminationOnlyForFieldUnitsButton.setEnabled(showDeterminationOnlyForFieldUnits != null);
+// allowOverridesDeterminationOnlyForFieldUnitsButton.setEnabled(showDeterminationOnlyForFieldUnits != null);
allowOverridesDeterminationOnlyForFieldUnitsButton.addSelectionListener(new SelectionAdapter(){
@Override
public void widgetSelected(SelectionEvent e) {
if (isAdminPreference){
allowOverrideIsShowTaxonAssociationButton = createAllowOverrideButton(composite);
allowOverrideIsShowTaxonAssociationButton.setSelection(allowOverrideShowTaxonAssociation);
- allowOverrideIsShowTaxonAssociationButton.setEnabled(showTaxonAssociation != null);
+// allowOverrideIsShowTaxonAssociationButton.setEnabled(showTaxonAssociation != null);
allowOverrideIsShowTaxonAssociationButton.addSelectionListener(new SelectionAdapter(){
@Override
public void widgetSelected(SelectionEvent e) {
if (isAdminPreference){
allowOverrideShowLifeFormButton = createAllowOverrideButton(composite);
allowOverrideShowLifeFormButton.setSelection(allowOverrideShowLifeForm);
- allowOverrideShowLifeFormButton.setEnabled(showLifeForm != null);
+// allowOverrideShowLifeFormButton.setEnabled(showLifeForm != null);
allowOverrideShowLifeFormButton.addSelectionListener(new SelectionAdapter(){
@Override
public void widgetSelected(SelectionEvent e) {
allowOverrideShowLifeForm = true;
allowOverrideShowLifeFormButton.setSelection(allowOverrideShowSpecimenRelatedIssues);
}
-
+ setApply(true);
super.performDefaults();
}
String text = showSpecimenButton.getText();
if(text.startsWith(Messages.Preference_Use_Default)){
isShowSpecimenRelatedIssues = null;
- if (isAdminPreference){
- allowOverrideIsShowSpecimenRelatedIssuesButton.setSelection(true);
- allowOverrideIsShowSpecimenRelatedIssuesButton.setEnabled(false);
- }
return;
}
- if (isAdminPreference){
- allowOverrideIsShowSpecimenRelatedIssuesButton.setEnabled(true);
- }
+
if (text.equals(Messages.GeneralPreference_yes)){
isShowSpecimenRelatedIssues = true;
}else{
String text = showCollectingAreaInGeneralSectionButton.getText();
if(text.startsWith(Messages.Preference_Use_Default)){
isShowCollectingAreaInGeneralSection = null;
- if (isAdminPreference){
- allowOverrideShowCollectingAreaButton.setSelection(true);
- allowOverrideShowCollectingAreaButton.setEnabled(false);
- }
return;
}
- if (isAdminPreference){
- allowOverrideShowCollectingAreaButton.setEnabled(true);
- }
+
if (text.equals(Messages.GeneralPreference_yes)){
isShowCollectingAreaInGeneralSection = true;
}else{
String text = determinationOnlyForFieldUnitsButton.getText();
if(text.startsWith(Messages.Preference_Use_Default)){
isDeterminationOnlyForFieldUnits = null;
- if (isAdminPreference){
- allowOverridesDeterminationOnlyForFieldUnitsButton.setSelection(true);
- allowOverridesDeterminationOnlyForFieldUnitsButton.setEnabled(false);
- }
return;
}
- if (isAdminPreference){
- allowOverridesDeterminationOnlyForFieldUnitsButton.setEnabled(true);
- }
if (text.equals(Messages.GeneralPreference_yes)){
isDeterminationOnlyForFieldUnits = true;
}else{
String text = showTaxonAssociationButton.getText();
if(text.startsWith(Messages.Preference_Use_Default)){
isShowTaxonAssociation = null;
- if (isAdminPreference){
- //showTaxonAssociation.setAllowOverride(true);
- allowOverrideIsShowTaxonAssociationButton.setSelection(true);
- allowOverrideIsShowTaxonAssociationButton.setEnabled(false);
- }
return;
- }if (isAdminPreference){
- allowOverrideIsShowTaxonAssociationButton.setEnabled(true);
}
+
if (text.equals(Messages.GeneralPreference_yes)){
isShowTaxonAssociation = true;
}else{
String text = showLifeFormButton.getText();
if(text.startsWith(Messages.Preference_Use_Default)){
isShowLifeForm = null;
- if (isAdminPreference){
- allowOverrideShowLifeFormButton.setSelection(true);
- allowOverrideShowLifeFormButton.setEnabled(false);
- }
return;
}
- if (isAdminPreference){
- allowOverrideShowLifeFormButton.setEnabled(true);
- }
+
if (text.equals(Messages.GeneralPreference_yes)){
isShowLifeForm = true;
}else{