com.henri.jbcs
Class CheckStyleOpenTool

java.lang.Object
  extended by com.henri.jbcs.CheckStyleOpenTool

public class CheckStyleOpenTool
extends java.lang.Object

The main class for the OpenTool.

Version:
$Revision: 1.16 $ $Date: 2005/08/08 23:55:23 $
Author:
Henri Tremblay

Field Summary
static javax.swing.Icon ICON
          The toolbar icon
static java.lang.String JBPROP_FILE
           
 
Constructor Summary
CheckStyleOpenTool()
           
 
Method Summary
static void checkNodes(com.borland.primetime.ide.Browser browser, com.borland.jbuilder.node.JavaFileNode[] nodes)
          Runs Checkstyle on 1 or many files in a CheckerThread.
static java.lang.String getBasedir()
           
static com.puppycrawl.tools.checkstyle.Checker getChecker()
           
static java.lang.String getOpenToolInfo(java.lang.Object infoType)
          Retrieves information about this opentool.
static CSPreference getPreference()
           
static void initOpenTool(byte major, byte minor)
          The entry point of OpenTool.
static boolean isRunning()
          Tells if the plugin is currently running.
static void setPreference(CSPreference pref)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON

public static final javax.swing.Icon ICON
The toolbar icon


JBPROP_FILE

public static final java.lang.String JBPROP_FILE
Constructor Detail

CheckStyleOpenTool

public CheckStyleOpenTool()
Method Detail

initOpenTool

public static void initOpenTool(byte major,
                                byte minor)
The entry point of OpenTool.

Parameters:
major - Major version number
minor - Minor version number

getOpenToolInfo

public static java.lang.String getOpenToolInfo(java.lang.Object infoType)
Retrieves information about this opentool. Used by AboutOpenTools

Parameters:
infoType - Type of information to retrieve.
Returns:
String containing the information requested.
See Also:
AboutOpenTools

getPreference

public static CSPreference getPreference()

setPreference

public static void setPreference(CSPreference pref)

getChecker

public static com.puppycrawl.tools.checkstyle.Checker getChecker()

getBasedir

public static java.lang.String getBasedir()

isRunning

public static boolean isRunning()
Tells if the plugin is currently running.

Returns:
if the plugin is running

checkNodes

public static void checkNodes(com.borland.primetime.ide.Browser browser,
                              com.borland.jbuilder.node.JavaFileNode[] nodes)
Runs Checkstyle on 1 or many files in a CheckerThread.

Parameters:
browser - The Jbuilder browser where Checkstyle is launched
nodes - The files to check.


Copyright © 2004-2005 . All Rights Reserved.