Back to index

wims  3.65+svn20090927
Public Member Functions
ptolemy.plot.PlotFrame.FileMenuListener Class Reference
Inheritance diagram for ptolemy.plot.PlotFrame.FileMenuListener:
Inheritance graph
[legend]
Collaboration diagram for ptolemy.plot.PlotFrame.FileMenuListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void actionPerformed (ActionEvent e)

Detailed Description

Definition at line 531 of file PlotFrame.java.


Member Function Documentation

Definition at line 532 of file PlotFrame.java.

                                                   {
            JMenuItem target = (JMenuItem) e.getSource();
            String actionCommand = target.getActionCommand();

            try {
                if (actionCommand.equals("Open")) {
                    _open();
                } else if (actionCommand.equals("Save")) {
                    _save();
                } else if (actionCommand.equals("SaveAs")) {
                    _saveAs();
                } else if (actionCommand.equals("Export")) {
                    _export();
                } else if (actionCommand.equals("Print")) {
                    _print();
                } else if (actionCommand.equals("Close")) {
                    _close();
                }
            } catch (Exception exception) {
                // If we do not catch exceptions here, then they
                // disappear to stdout, which is bad if we launched
                // where there is no stdout visible.
                JOptionPane.showMessageDialog(null, "File Menu Exception:\n"
                        + exception.toString(), "Ptolemy Plot Error",
                        JOptionPane.WARNING_MESSAGE);
            }

            // NOTE: The following should not be needed, but there jdk1.3beta
            // appears to have a bug in swing where repainting doesn't
            // properly occur.
            repaint();
        }

Here is the call graph for this function:


The documentation for this class was generated from the following file: