org.eclipse.jdt.core.formatter
Class CodeFormatterApplication
java.lang.Object
org.eclipse.jdt.core.formatter.CodeFormatterApplication
- All Implemented Interfaces:
- org.eclipse.equinox.app.IApplication
public class CodeFormatterApplication
- extends Object
- implements org.eclipse.equinox.app.IApplication
Implements an Eclipse Application for org.eclipse.jdt.core.JavaCodeFormatter.
There are a couple improvements that could be made: 1. Make a list of all the
files first so that a file does not get formatted twice. 2. Use a text based
progress monitor for output.
- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
Fields inherited from interface org.eclipse.equinox.app.IApplication |
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART |
Method Summary |
Object |
start(org.eclipse.equinox.app.IApplicationContext context)
Runs the Java code formatter application |
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeFormatterApplication
public CodeFormatterApplication()
start
public Object start(org.eclipse.equinox.app.IApplicationContext context)
throws Exception
- Runs the Java code formatter application
- Specified by:
start
in interface org.eclipse.equinox.app.IApplication
- Throws:
Exception
stop
public void stop()
- Specified by:
stop
in interface org.eclipse.equinox.app.IApplication
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.