Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.klavergne.jext.plugins.clearcase.actions
Class AbstractClearCaseAction  view AbstractClearCaseAction download AbstractClearCaseAction.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.klavergne.jext.plugins.clearcase.actions.AbstractClearCaseAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
AddToSourceControlAction, CheckInAction, CheckOutAction, DetailsAction, DiffPreviousAction, HistoryAction, MergeManagerAction, OptionsAction, UndoCheckOutAction, VersionTreeAction

public abstract class AbstractClearCaseAction
extends javax.swing.AbstractAction

This is an abstract version of AbstractAction for use in Jext menus and toolbars.

Version:
1.0

Field Summary
protected  org.jext.JextFrame frame
          The JextFrame that is the parent to this Action.
 
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
AbstractClearCaseAction(java.lang.String name, org.jext.JextFrame aFrame)
          Creates a new Action with the given name and JextFrame as a parent.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Implementation of the ActionListener class.
protected  java.lang.String getSelectedFileName()
          Returns the full path to the currently selected file in Jext.
abstract  boolean performAction(java.awt.event.ActionEvent event)
          Subclasses of this abstract class must implement this method and perform the functionality that they require in this method.
protected  void reloadFile()
          Reloads the current file in Jext.
 
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

frame

protected org.jext.JextFrame frame
The JextFrame that is the parent to this Action.

Constructor Detail

AbstractClearCaseAction

public AbstractClearCaseAction(java.lang.String name,
                               org.jext.JextFrame aFrame)
Creates a new Action with the given name and JextFrame as a parent.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Implementation of the ActionListener class. Uses the SwingWorker class to execute functionality in a separate thread so that the Jext GUI will repaint before or while this is running.


performAction

public abstract boolean performAction(java.awt.event.ActionEvent event)
Subclasses of this abstract class must implement this method and perform the functionality that they require in this method.


getSelectedFileName

protected java.lang.String getSelectedFileName()
Returns the full path to the currently selected file in Jext.


reloadFile

protected void reloadFile()
Reloads the current file in Jext.