verinec.validation.gui.menu.actions
Class OpenLogfileAction
java.lang.Object
javax.swing.AbstractAction
verinec.validation.gui.menu.actions.OpenLogfileAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class OpenLogfileAction
- extends AbstractAction
Opens a log file.
This class is implemented as a Singleton. Instances can be get using @see #getInstance(ValidationGui)
- Version:
- $Revision: 47 $
- Author:
- Dominik Jungo
- See Also:
- Serialized Form
|
Method Summary |
void |
actionPerformed(ActionEvent arg0)
Opens a logfile and adds it to a new tab. |
static OpenLogfileAction |
getInstance(ValidationGui gui,
VerinecStudio studio)
returns and instance of this class. the singleton pattern ensures that there is only one instance of it. an instance is created, linked with a static variable and returned if this wasn't done before or the instance created before is just returned. |
instance
private static OpenLogfileAction instance
gui
private ValidationGui gui
studio
private VerinecStudio studio
jlogger
private Logger jlogger
icon
private static final String icon
- See Also:
- Constant Field Values
OpenLogfileAction
private OpenLogfileAction(String name,
ValidationGui gui,
VerinecStudio studio)
throws VerinecException
- Throws:
VerinecException
actionPerformed
public void actionPerformed(ActionEvent arg0)
- Opens a logfile and adds it to a new tab. To select the file to open, it opens a FileChooser.
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
getInstance
public static OpenLogfileAction getInstance(ValidationGui gui,
VerinecStudio studio)
throws VerinecException
- returns and instance of this class. the singleton pattern ensures that there is only one instance of it. an instance is created, linked with a static variable and returned if this wasn't done before or the instance created before is just returned.
- Parameters:
gui - the validator guistudio - the verinec gui
- Returns:
- an instance of this class
- Throws:
VerinecException - if the Action cannot be instanciated