Browse Source

REPORT-4421 以下参数未生成问题

master
plough 7 years ago
parent
commit
0d68bd0b6c
  1. 8
      designer_form/src/com/fr/design/parameter/ParameterPropertyPane.java

8
designer_form/src/com/fr/design/parameter/ParameterPropertyPane.java

@ -1,10 +1,13 @@
package com.fr.design.parameter;
import com.fr.design.constants.UIConstants;
import com.fr.design.designer.creator.XWParameterLayout;
import com.fr.design.dialog.BasicScrollPane;
import com.fr.design.gui.ibutton.UIButton;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.FormDesigner;
import com.fr.design.mainframe.FormHierarchyTreePane;
import com.fr.design.mainframe.JForm;
import javax.swing.*;
import java.awt.*;
@ -86,7 +89,10 @@ public class ParameterPropertyPane extends JPanel{
if (isVisible == addParaPane.isVisible() || formHierarchyTreePaneWrapper == null) {
return;
}
if (isVisible && toolbarPane.hasSelectedLabelItem()) {
// 表单中,只有添加并选中参数面板时,才显示
boolean hideInJForm = DesignerContext.getDesignerFrame().getSelectedJTemplate() instanceof JForm &&
!(FormHierarchyTreePane.getInstance().getComponentTree().getSelectionPath().getLastPathComponent() instanceof XWParameterLayout);
if (isVisible && toolbarPane.hasSelectedLabelItem() && !hideInJForm) {
addParaPane.setVisible(true);
this.setPreferredSize(null);
} else {

Loading…
Cancel
Save