public class CodeFormatterApplication extends Object implements IApplication
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.
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
Constructor and Description |
---|
CodeFormatterApplication() |
Modifier and Type | Method and Description |
---|---|
Object |
start(IApplicationContext context)
Runs the Java code formatter application
|
void |
stop() |
public Object start(IApplicationContext context) throws Exception
start
in interface IApplication
Exception
public void stop()
stop
in interface IApplication
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.