|
|
@ -491,7 +491,10 @@ public class PreferencePane extends BasicPane { |
|
|
|
gcControlPane.setVisible(!useV2); |
|
|
|
gcControlPane.setVisible(!useV2); |
|
|
|
useVcsAutoCleanScheduleCheckBox.setSelected(useV2); |
|
|
|
useVcsAutoCleanScheduleCheckBox.setSelected(useV2); |
|
|
|
useVcsAutoSaveScheduleCheckBox.setSelected(useV2); |
|
|
|
useVcsAutoSaveScheduleCheckBox.setSelected(useV2); |
|
|
|
useVcsAutoCleanScheduleCheckBox.setEnabled(useV2 && FineScheduler.getInstance().isStarted()); |
|
|
|
boolean useAutoClean =useV2 && FineScheduler.getInstance().isStarted(); |
|
|
|
|
|
|
|
useVcsAutoCleanScheduleCheckBox.setEnabled(useAutoClean); |
|
|
|
|
|
|
|
autoCleanIntervalComboBox.setEnabled(useAutoClean); |
|
|
|
|
|
|
|
autoCleanRetainIntervalComboBox.setEnabled(useAutoClean); |
|
|
|
useVcsAutoSaveScheduleCheckBox.setEnabled(useV2); |
|
|
|
useVcsAutoSaveScheduleCheckBox.setEnabled(useV2); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -510,7 +513,10 @@ public class PreferencePane extends BasicPane { |
|
|
|
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Content"))); |
|
|
|
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Content"))); |
|
|
|
autoCleanPane.add(autoCleanRetainIntervalComboBox); |
|
|
|
autoCleanPane.add(autoCleanRetainIntervalComboBox); |
|
|
|
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last"))); |
|
|
|
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last"))); |
|
|
|
useVcsAutoCleanScheduleCheckBox.setEnabled(!VcsHelper.getInstance().isLegacyMode() && FineScheduler.getInstance().isStarted()); |
|
|
|
boolean useAutoClean = !VcsHelper.getInstance().isLegacyMode() && FineScheduler.getInstance().isStarted(); |
|
|
|
|
|
|
|
useVcsAutoCleanScheduleCheckBox.setEnabled(useAutoClean); |
|
|
|
|
|
|
|
autoCleanIntervalComboBox.setEnabled(useAutoClean); |
|
|
|
|
|
|
|
autoCleanRetainIntervalComboBox.setEnabled(useAutoClean); |
|
|
|
autoCleanPane.setVisible(false); |
|
|
|
autoCleanPane.setVisible(false); |
|
|
|
return autoCleanPane; |
|
|
|
return autoCleanPane; |
|
|
|
} |
|
|
|
} |
|
|
|