1 | public class FilePrintAction extends SquirrelAction implements ISQLPanelAction↵ | | 1 | public class FileSaveAction extends SquirrelAction implements ISQLPanelAction↵
|
2 | {↵ | | 2 | {↵
|
3 | private ISQLPanelAPI _panel;↵ | | 3 | private ISQLPanelAPI _panel;↵
|
|
4 | public FilePrintAction(IApplication app)↵ | | 4 | public FileSaveAction(IApplication app)↵
|
5 | {↵ | | 5 | {↵
|
6 | super(app);↵ | | 6 | super(app);↵
|
7 | setEnabled(false);↵ | | 7 | setEnabled(false);↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void actionPerformed(ActionEvent e)↵ | | 9 | public void actionPerformed(ActionEvent e)↵
|
10 | {↵ | | 10 | {↵
|
11 | _panel.filePrint();↵ | | 11 | _panel.fileSave();↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void setSQLPanel(ISQLPanelAPI panel)↵ | | 13 | public void setSQLPanel(ISQLPanelAPI panel)↵
|
14 | {↵ | | 14 | {↵
|
15 | _panel = panel;↵ | | 15 | _panel = panel;↵
|
16 | setEnabled(null != _panel) | | 16 | setEnabled(null != _panel)
|