projectviewer.action
Class OldStyleAddFileAction

java.lang.Object
  extended byprojectviewer.action.Action
      extended byprojectviewer.action.OldStyleAddFileAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener

public class OldStyleAddFileAction
extends Action

Imports files in the style of the old version of the plugin. For more details, see the importer class. This is a toolbar action, so prepareNode() is not overridden.

Version:
$Id: OldStyleAddFileAction.java 6113 2003-03-02 21:35:38Z vanza $
Author:
Marcelo Vanzin
See Also:
OldStyleFileImporter

Field Summary
 
Fields inherited from class projectviewer.action.Action
action, cmItem, tbButton, viewer
 
Constructor Summary
OldStyleAddFileAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Creates a new project.
 javax.swing.Icon getIcon()
          Returns the icon to be shown.
 java.lang.String getText()
          Returns the text to be shown on the button and/or menu item.
 
Methods inherited from class projectviewer.action.Action
clone, getButton, getMenuItem, prepareForNode, setViewer
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OldStyleAddFileAction

public OldStyleAddFileAction()
Method Detail

getText

public java.lang.String getText()
Returns the text to be shown on the button and/or menu item.

Specified by:
getText in class Action

getIcon

public javax.swing.Icon getIcon()
Returns the icon to be shown.

Overrides:
getIcon in class Action

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Creates a new project.