verinec.validation.gui.menu.actions
Class NewSchemaAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by verinec.validation.gui.menu.actions.NewSchemaAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class NewSchemaAction
extends AbstractAction

Creates a new Editor. 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

Field Summary
private  ValidationGui gui
           
private static NewSchemaAction instance
           
private  Logger jlogger
           
private  VerinecStudio studio
           
 
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
private NewSchemaAction(String name, ValidationGui gui, VerinecStudio studio)
           
 
Method Summary
 void actionPerformed(ActionEvent arg0)
          creates a new EditorPanel and adds it to a new tab
static NewSchemaAction 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.
 
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
 

Field Detail

instance

private static NewSchemaAction instance

gui

private ValidationGui gui

studio

private VerinecStudio studio

jlogger

private Logger jlogger
Constructor Detail

NewSchemaAction

private NewSchemaAction(String name,
                        ValidationGui gui,
                        VerinecStudio studio)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent arg0)
creates a new EditorPanel and adds it to a new tab

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

getInstance

public static NewSchemaAction 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.

Parameters:
gui - the validator gui
studio - the veinec gui
Returns:
an instance of this class

Copyright © 2005 Verinec, DIUF