easik.ui.menu
Class FileOpenAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by easik.ui.menu.FileOpenAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class FileOpenAction
extends javax.swing.AbstractAction

Menu action for opening and loading a sketch

Version:
2006-08-03 Kevin Green
Author:
Rob Fletcher 2005, Kevin Green 2006
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FileOpenAction()
          Create the menu option for loading a sketch
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Opens a new dialog box to choose the file to load.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileOpenAction

public FileOpenAction()
Create the menu option for loading a sketch

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Opens a new dialog box to choose the file to load. Prompts user for confirmation if the current sketch is unsaved.

Parameters:
e - The action event