com.inet.editor
Class SourceCodeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javax.swing.text.TextAction
          extended by javax.swing.text.StyledEditorKit.StyledTextAction
              extended by javax.swing.text.html.HTMLEditorKit.HTMLTextAction
                  extended by com.inet.editor.SourceCodeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class SourceCodeAction
extends javax.swing.text.html.HTMLEditorKit.HTMLTextAction

The action to open the source code window for a base editor

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SourceCodeAction(BaseEditor editor)
          Creates the action and places the editor reference
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          
 boolean isEnabled()
          
 
Methods inherited from class javax.swing.text.TextAction
augmentList
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceCodeAction

public SourceCodeAction(BaseEditor editor)
Creates the action and places the editor reference

Parameters:
editor - the current editor
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)


isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface javax.swing.Action
Overrides:
isEnabled in class javax.swing.AbstractAction