From 8220af6f4ed4b7503f0b018736fc3fc8f416aaf9 Mon Sep 17 00:00:00 2001 From: "Joe.Jiang" Date: Thu, 17 Dec 2020 19:40:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E7=AE=A1=E7=90=86=E5=99=A8?= =?UTF-8?q?=20+=20=E8=AF=95=E7=94=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/plugin/event/manager/core/EventManager.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/fr/plugin/event/manager/core/EventManager.java b/src/main/java/com/fr/plugin/event/manager/core/EventManager.java index 1fdaaeb..a5f7fb7 100644 --- a/src/main/java/com/fr/plugin/event/manager/core/EventManager.java +++ b/src/main/java/com/fr/plugin/event/manager/core/EventManager.java @@ -3,14 +3,12 @@ package com.fr.plugin.event.manager.core; import com.fr.base.BaseUtils; import com.fr.design.DesignModelAdapter; import com.fr.design.actions.JTemplateAction; -import com.fr.design.dialog.BasicDialog; -import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.dialog.FineJOptionPane; import com.fr.design.dialog.UIDialog; import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.JTemplate; -import com.fr.design.mainframe.JWorkBook; import com.fr.design.mainframe.WidgetPropertyPane; +import com.fr.form.main.Form; import com.fr.plugin.event.manager.ui.EventManagerDialog; import com.fr.plugin.event.manager.ui.EventManagerPane; import com.fr.plugin.event.manager.utils.KeySetUtils; @@ -18,7 +16,6 @@ import com.fr.plugin.transform.ExecuteFunctionRecord; import com.fr.plugin.transform.FunctionRecorder; import javax.swing.JOptionPane; -import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; @@ -57,7 +54,9 @@ public abstract class EventManager extends JTemplateAction> { public void windowClosed(WindowEvent e) { eventManagerPane.update(); // 刷新一下右侧面板,避免事件显示不同步 - WidgetPropertyPane.getInstance().refreshDockingView(); + if (target instanceof Form) { + WidgetPropertyPane.getInstance().refreshDockingView(); + } // 触发正在编辑的模板改变事件 DesignModelAdapter.getCurrentModelAdapter().fireTargetModified(); super.windowClosed(e);