Package org.eclipse.cdt.core.formatter
Class CodeFormatterApplication
- java.lang.Object
-
- org.eclipse.cdt.core.formatter.CodeFormatterApplication
-
- All Implemented Interfaces:
org.eclipse.equinox.app.IApplication
public class CodeFormatterApplication extends java.lang.Object implements org.eclipse.equinox.app.IApplicationImplements an Eclipse Application for org.eclipse.cdt.core.CodeFormatter.On MacOS, when invoked using the Eclipse executable, the "user.dir" property is set to the folder in which the eclipse.ini file is located. This makes it harder to use relative paths to point to the files to be formatted or the configuration file to use to set the code formatter's options.
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:
- 6.4
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description CodeFormatterApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectstart(org.eclipse.equinox.app.IApplicationContext context)Runs the code formatter applicationvoidstop()
-
-
-
Method Detail
-
start
public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context) throws java.lang.ExceptionRuns the code formatter application- Specified by:
startin interfaceorg.eclipse.equinox.app.IApplication- Throws:
java.lang.Exception
-
stop
public void stop()
- Specified by:
stopin interfaceorg.eclipse.equinox.app.IApplication
-
-