You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
package com.fr.design.debug.remote; |
|
|
|
import com.fine.theme.utils.FineUIUtils; |
|
import com.fr.design.actions.UpdateAction; |
|
import com.fr.design.mainframe.DesignerContext; |
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import javax.swing.JDialog; |
|
import javax.swing.KeyStroke; |
|
import java.awt.event.ActionEvent; |
|
import java.awt.event.KeyEvent; |
|
import java.awt.event.WindowAdapter; |
|
import java.awt.event.WindowEvent; |
|
|
|
import static com.fr.design.gui.syntax.ui.rtextarea.RTADefaultInputMap.DEFAULT_MODIFIER; |
|
|
|
/** |
|
* 远程设计网络调试 |
|
* |
|
* @author vito |
|
* @since 11.0 |
|
* Created on 2024/9/24 |
|
*/ |
|
public class RemoteDesignNetWorkAction extends UpdateAction { |
|
public static final String TITLE = "Remote Design NetWork"; |
|
|
|
public RemoteDesignNetWorkAction() { |
|
this.setName(TITLE); |
|
this.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, DEFAULT_MODIFIER)); |
|
} |
|
|
|
@Override |
|
public void actionPerformed(ActionEvent e) { |
|
JDialog jDialog = new JDialog(DesignerContext.getDesignerFrame(), TITLE); |
|
jDialog.setSize(FineUIUtils.calPaneDimensionByContext(0.8, 0.6)); |
|
RemoteDesignNetWorkTablePane netWorkPane = new RemoteDesignNetWorkTablePane(); |
|
jDialog.add(netWorkPane); |
|
jDialog.addWindowListener(new WindowAdapter() { |
|
@Override |
|
public void windowClosing(WindowEvent e) { |
|
netWorkPane.clear(); |
|
super.windowClosing(e); |
|
} |
|
}); |
|
GUICoreUtils.centerWindow(jDialog); |
|
jDialog.setVisible(true); |
|
} |
|
|
|
} |
|
|
|
|