84 |
84 |
|
85 |
85 |
protected CdmPreference areaVocPref = null;
|
86 |
86 |
protected CdmPreference statusPref = null;
|
|
87 |
private CommandHandlerButton button_openSelectAreas;
|
|
88 |
private CommandHandlerButton button_openStatusWizard;
|
87 |
89 |
|
88 |
90 |
@Override
|
89 |
91 |
protected Control createContents(Composite parent) {
|
... | ... | |
413 |
415 |
labelStatus.setText(Messages.DistributionAdminPreferences_SELECT_STATUS);
|
414 |
416 |
labelStatus.setLayoutData(textGrid);
|
415 |
417 |
|
416 |
|
final CommandHandlerButton button_openStatusWizard = new CommandHandlerButton(child, SWT.PUSH,
|
|
418 |
button_openStatusWizard = new CommandHandlerButton(child, SWT.PUSH,
|
417 |
419 |
commandHandlerStringStatus);
|
418 |
420 |
|
419 |
421 |
button_openStatusWizard.setText(Messages.Distribution_status_selection);
|
... | ... | |
433 |
435 |
label.setText(Messages.ChecklistEditorGeneralPreference_open_wizard);
|
434 |
436 |
label.setLayoutData(textGrid);
|
435 |
437 |
|
436 |
|
final CommandHandlerButton button_openSelectAreas = new CommandHandlerButton(child, SWT.PUSH,
|
|
438 |
button_openSelectAreas = new CommandHandlerButton(child, SWT.PUSH,
|
437 |
439 |
commandHandlerString);
|
438 |
440 |
button_openSelectAreas.setText(Messages.ChecklistEditorGeneralPreference_open_distribution_selection);
|
439 |
441 |
|
... | ... | |
447 |
449 |
// }
|
448 |
450 |
if (!isAdminPreference){
|
449 |
451 |
PreferencesUtil.recursiveSetEnabled(child, isEditorActivated);
|
450 |
|
}
|
451 |
|
if (!isAdminPreference){
|
|
452 |
|
452 |
453 |
if (!allowOverrideAreaVoc){
|
453 |
454 |
button_openSelectAreas.setButtonEnabled(false);
|
454 |
455 |
}
|
... | ... | |
780 |
781 |
|
781 |
782 |
this.statusPref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AvailableDistributionStatus, null);
|
782 |
783 |
this.areaVocPref = CdmPreference.NewTaxEditorInstance(PreferencePredicate.AvailableDistributionAreaVocabularies, null);
|
|
784 |
if (!isAdminPreference){
|
|
785 |
PreferencesUtil.recursiveSetEnabled(child, isEditorActivated);
|
|
786 |
|
|
787 |
if (!allowOverrideAreaVoc){
|
|
788 |
button_openSelectAreas.setButtonEnabled(false);
|
|
789 |
}
|
|
790 |
if (!allowOverrideStatus){
|
|
791 |
button_openStatusWizard.setButtonEnabled(false);
|
|
792 |
}
|
|
793 |
if (!allowOverrideRank){
|
|
794 |
activateRankButton.setEnabled(false);
|
|
795 |
allowOverrideRankButton.setEnabled(false);
|
|
796 |
}
|
|
797 |
if (!allowOverrideOrderAreas){
|
|
798 |
areaOrderSelectionCombo.setEnabled(false);
|
|
799 |
allowOverrideOrderAreasButton.setEnabled(false);
|
|
800 |
}
|
|
801 |
if (!allowOverrideAreaDisplay){
|
|
802 |
|
|
803 |
allowOverrideAreaDisplayButton.setEnabled(false);
|
|
804 |
}
|
|
805 |
if (!allowOverrideStatusDisplay){
|
|
806 |
|
|
807 |
allowOverrideStatusDisplayButton.setEnabled(false);
|
|
808 |
}
|
|
809 |
}
|
783 |
810 |
super.performDefaults();
|
784 |
811 |
}
|
785 |
812 |
|
ref #7849: minor