Browse Source

Merge pull request #1155 in BA/design from ~PLOUGH/design:release/9.0 to release/9.0

* commit '75e626136264a1a6c64da027e2937cdde0bad0e6':
  REPORT-3163 合作开发9.0设计器=>验收=>切换sheet时应立即刷新右侧面板
  REPORT-4271 [9.0一轮回归]无法插入子报表,弹出的对话框中,点击路径预览没有响应
master
superman 7 years ago
parent
commit
41126da1ce
  1. 6
      designer/src/com/fr/design/mainframe/SheetNameTabPane.java
  2. 3
      designer_base/src/com/fr/file/FILEChooserPane.java

6
designer/src/com/fr/design/mainframe/SheetNameTabPane.java

@ -554,10 +554,12 @@ public class SheetNameTabPane extends JComponent implements MouseListener, Mouse
for (int i = scrollIndex; i <= lastOneIndex; i++) {
int textWidth = widthArray[i];
if (evtX >= textX && evtX < textX + textWidth) {
if (getSelectedIndex() != i) {
boolean needRefreshPropertiesPane = getSelectedIndex() != i;
setSelectedIndex(i);
if (needRefreshPropertiesPane) {
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshEastPropertiesPane();
}
setSelectedIndex(i);
isBlank = false;
reportComposite.setComposite();
if (isAuthorityEditing) {

3
designer_base/src/com/fr/file/FILEChooserPane.java

@ -16,6 +16,7 @@ import com.fr.design.gui.itextfield.UIAutoCompletionField;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import com.fr.design.mainframe.DesignerFrame;
import com.fr.design.mainframe.JTemplate;
import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.file.filetree.FileNode;
@ -475,7 +476,7 @@ public class FILEChooserPane extends BasicPane {
this.suffix = suffix;
dialog = showWindow((Window) parent, false);
dialog = showWindow(parent instanceof DesignerFrame ? (Window) parent : SwingUtilities.getWindowAncestor(parent), false);
JPanel contentPane = (JPanel) dialog.getContentPane();
contentPane.setLayout(FRGUIPaneFactory.createM_BorderLayout());
contentPane.add(this, BorderLayout.CENTER);

Loading…
Cancel
Save