|
|
@ -208,12 +208,22 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener { |
|
|
|
StringSelection selection = new StringSelection(sql); |
|
|
|
StringSelection selection = new StringSelection(sql); |
|
|
|
java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(selection, selection); |
|
|
|
java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(selection, selection); |
|
|
|
// 弹窗
|
|
|
|
// 弹窗
|
|
|
|
PreviewPerformedSqlPane pane; |
|
|
|
|
|
|
|
if (isShowSpecialCharSqlPane(specialCharParamIndex)) { |
|
|
|
if (isShowSpecialCharSqlPane(specialCharParamIndex)) { |
|
|
|
pane = new PreviewPerformedSqlPane(DesignerContext.getDesignerFrame(), sql, specialCharParamIndex, ConfigService.getInstance().getPSIConfig().getSelectedSpecialChar(), highlight); |
|
|
|
showSpecialCharSqlPane(sql, specialCharParamIndex, highlight); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
pane = new PreviewPerformedSqlPane(DesignerContext.getDesignerFrame(), sql); |
|
|
|
showNormalPreviewPane(sql); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 埋点方法
|
|
|
|
|
|
|
|
private static void showNormalPreviewPane(String sql) { |
|
|
|
|
|
|
|
PreviewPerformedSqlPane pane = new PreviewPerformedSqlPane(DesignerContext.getDesignerFrame(), sql); |
|
|
|
|
|
|
|
pane.setVisible(true); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 埋点方法
|
|
|
|
|
|
|
|
private static void showSpecialCharSqlPane(String sql, List<int[]> specialCharParamIndex, boolean highlight) { |
|
|
|
|
|
|
|
PreviewPerformedSqlPane pane = new PreviewPerformedSqlPane(DesignerContext.getDesignerFrame(), sql, specialCharParamIndex, ConfigService.getInstance().getPSIConfig().getSelectedSpecialChar(), highlight); |
|
|
|
pane.setVisible(true); |
|
|
|
pane.setVisible(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|