com.henri.jbcs
Class CheckStyleContextAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by com.borland.primetime.actions.UpdateAction
          extended by com.borland.primetime.ide.BrowserAction
              extended by com.henri.jbcs.CheckStyleContextAction
All Implemented Interfaces:
com.borland.primetime.actions.UpdateableAction, com.borland.primetime.ide.ContextActionProvider, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class CheckStyleContextAction
extends com.borland.primetime.ide.BrowserAction
implements com.borland.primetime.ide.ContextActionProvider

A BrowserAction to check multiple files.

The action spawns a thread for the checking, so that the message view can be updated during a lengthy checking process.

Version:
$Revision: 1.6 $ $Date: 2005/08/01 20:48:47 $
Author:
Henri Tremblay
See Also:
BrowserAction, ContextActionProvider, Serialized Form

Field Summary
 
Fields inherited from class com.borland.primetime.actions.UpdateAction
ACCELERATOR, ALT_SHORT_DESCRIPTION, CLICK_FOR_DROPDOWN, disabledReason, EMPTY_ARRAY, HELP_TOPIC, LARGE_ICON, MNEMONIC, personalities, SHOW_BUTTON_TEXT, SUBMENU_DELEGATE
 
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
CheckStyleContextAction()
           
 
Method Summary
 void actionPerformed(com.borland.primetime.ide.Browser browser)
          Runs Checkstyle on all the JavaFileNode entries in the m_Nodes array.
 javax.swing.Action getContextAction(com.borland.primetime.ide.Browser browser, com.borland.primetime.node.Node[] nodes)
          Sets the internal Node[] and return the Action if the first entry is a source file, package node or project.
 
Methods inherited from class com.borland.primetime.ide.BrowserAction
actionPerformed, update, update
 
Methods inherited from class com.borland.primetime.actions.UpdateAction
getAltShortText, getDisabledReason, getHelpTopic, getLargeIcon, getLongText, getMnemonic, getPersonalities, getShortText, getSmallIcon, makeIdeKeymapBindable, setAltShortText, setConfigured, setConfigured, setDisabledReason, setHelpTopic, setLargeIcon, setLongText, setMnemonic, setPersonalities, setShortText, setSmallIcon
 
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
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

CheckStyleContextAction

public CheckStyleContextAction()
See Also:
BrowserAction
Method Detail

actionPerformed

public void actionPerformed(com.borland.primetime.ide.Browser browser)
Runs Checkstyle on all the JavaFileNode entries in the m_Nodes array. If the array is null, get the active Node from the browser.

Specified by:
actionPerformed in class com.borland.primetime.ide.BrowserAction
Parameters:
browser - The active browser.

getContextAction

public javax.swing.Action getContextAction(com.borland.primetime.ide.Browser browser,
                                           com.borland.primetime.node.Node[] nodes)
Sets the internal Node[] and return the Action if the first entry is a source file, package node or project.

Specified by:
getContextAction in interface com.borland.primetime.ide.ContextActionProvider
Parameters:
browser - The active browser.
nodes - The active nodes.
Returns:
A reference to the static CheckStyleOpenTool.ACTION_CheckStyleProject action if the node is a source file, package node or project.
See Also:
ContextActionProvider


Copyright © 2004-2005 . All Rights Reserved.