Browse Source

REPORT-89867 【降本增效】插件管理优化 优化代码

feature/x
Destiny.Lin 1 year ago
parent
commit
609e9ce595
  1. 16
      designer-base/src/main/java/com/fr/design/extra/PluginBatchModifyDetailPane.java

16
designer-base/src/main/java/com/fr/design/extra/PluginBatchModifyDetailPane.java

@ -45,6 +45,16 @@ public class PluginBatchModifyDetailPane {
private JTextArea jta;
private JDialog dialog;
/**
* 弹窗面板默认大小
*/
public static final Dimension DEFAULT = new Dimension(380, 150);
/**
* 弹窗面板展开大小
*/
public static final Dimension DEFAULT_PRO = new Dimension(380, 270);
public PluginBatchModifyDetailPane(Dialog parent) {
init(parent);
}
@ -52,7 +62,7 @@ public class PluginBatchModifyDetailPane {
private void init(Dialog parent) {
message.setBorder(BorderFactory.createEmptyBorder(8, 5, 0, 0));
dialog = new JDialog(parent, Toolkit.i18nText("Fine-Design_Basic_Plugin_Manager"), true);
dialog.setSize(new Dimension(380, 150));
dialog.setSize(DEFAULT);
JPanel jp = new JPanel();
initUpPane();
initDownPane();
@ -126,11 +136,11 @@ public class PluginBatchModifyDetailPane {
public void mouseClicked(MouseEvent e) {
if (hiddenPanel.isVisible()) {
hiddenPanel.setVisible(false);
dialog.setSize(new Dimension(380, 150));
dialog.setSize(DEFAULT);
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Look_Detail"));
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.right"));
} else {
dialog.setSize(new Dimension(380, 270));
dialog.setSize(DEFAULT_PRO);
hiddenPanel.setVisible(true);
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Hide_Detail"));
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.down"));

Loading…
Cancel
Save