|
|
|
@ -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<JTemplate<?, ?>> {
|
|
|
|
|
public void windowClosed(WindowEvent e) { |
|
|
|
|
eventManagerPane.update(); |
|
|
|
|
// 刷新一下右侧面板,避免事件显示不同步
|
|
|
|
|
WidgetPropertyPane.getInstance().refreshDockingView(); |
|
|
|
|
if (target instanceof Form) { |
|
|
|
|
WidgetPropertyPane.getInstance().refreshDockingView(); |
|
|
|
|
} |
|
|
|
|
// 触发正在编辑的模板改变事件
|
|
|
|
|
DesignModelAdapter.getCurrentModelAdapter().fireTargetModified(); |
|
|
|
|
super.windowClosed(e); |
|
|
|
|