|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.IndentFiles
public class IndentFiles
Allows users to pass filenames to a command-line indenter. Unfortunately, this uses the Swing API (high overhead), but we attempt to run the indentation in "headless AWT" mode to prevent a Java icon from showing up on the OS X dock.
| Constructor Summary | |
|---|---|
IndentFiles()
|
|
| Method Summary | |
|---|---|
private static void |
_displayUsage()
Displays a message showing how to use this class. |
static void |
indentFiles(Vector<String> fileNames,
int indentLevel,
boolean silent)
Applies the indent logic to each file in the list of file names, saving the new copy of each one. |
static void |
main(String[] args)
Command line interface to the indenter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndentFiles()
| Method Detail |
|---|
public static void main(String[] args)
args - Command line argumentsprivate static void _displayUsage()
public static void indentFiles(Vector<String> fileNames,
int indentLevel,
boolean silent)
fileNames - Vector of filenames of files to be indentedindentLevel - The number of spaces to use for a level of indentationsilent - Whether to print any output to System.out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||