Browse Source

Merge pull request #929 in DESIGN/design from ~XIAOXIA/design:release/10.0 to release/10.0

* commit '10c9240e087cedd1d30a9ec15a07b667f6c53f43':
  REPORT-17494 模板版本管理,选项灰化问题
bugfix/10.0
xiaoxia 6 years ago
parent
commit
2dfa63476a
  1. 8
      designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java

8
designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java

@ -232,8 +232,8 @@ public class PreferencePane extends BasicPane {
enableVcsPanel.add(vcsEnableCheckBox); enableVcsPanel.add(vcsEnableCheckBox);
enableVcsPanel.add(remindVcsLabel); enableVcsPanel.add(remindVcsLabel);
JPanel intervalPanel = new JPanel(FRGUIPaneFactory.createLeftZeroLayout()); JPanel intervalPanel = new JPanel(FRGUIPaneFactory.createLeftZeroLayout());
UILabel everyLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Every")); final UILabel everyLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Every"));
UILabel delayLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Delay")); final UILabel delayLabel = new UILabel(Toolkit.i18nText("Fine-Design_Vcs_Delay"));
intervalPanel.add(useIntervalCheckBox); intervalPanel.add(useIntervalCheckBox);
intervalPanel.add(everyLabel); intervalPanel.add(everyLabel);
intervalPanel.add(saveIntervalEditor); intervalPanel.add(saveIntervalEditor);
@ -246,10 +246,14 @@ public class PreferencePane extends BasicPane {
saveCommitCheckBox.setEnabled(true); saveCommitCheckBox.setEnabled(true);
saveIntervalEditor.setEnabled(true); saveIntervalEditor.setEnabled(true);
useIntervalCheckBox.setEnabled(true); useIntervalCheckBox.setEnabled(true);
everyLabel.setEnabled(true);
delayLabel.setEnabled(true);
} else { } else {
saveCommitCheckBox.setEnabled(false); saveCommitCheckBox.setEnabled(false);
saveIntervalEditor.setEnabled(false); saveIntervalEditor.setEnabled(false);
useIntervalCheckBox.setEnabled(false); useIntervalCheckBox.setEnabled(false);
everyLabel.setEnabled(false);
delayLabel.setEnabled(false);
} }
} }
}); });

Loading…
Cancel
Save