Eclipse JDT
Release 3.2

org.eclipse.jdt.core.formatter
Class CodeFormatterApplication

java.lang.Object
  extended byorg.eclipse.jdt.core.formatter.CodeFormatterApplication
All Implemented Interfaces:
IPlatformRunnable

public class CodeFormatterApplication
extends Object
implements IPlatformRunnable

Implements an Eclipse Application for org.eclipse.jdt.core.JavaCodeFormatter. There are a couple improvments 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.

This class is not intended to be instantiated or subclassed by clients.

Since:
3.2

Field Summary
 
Fields inherited from interface org.eclipse.core.runtime.IPlatformRunnable
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
CodeFormatterApplication()
           
 
Method Summary
 Object run(Object args)
          Runs the Java code formatter application
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeFormatterApplication

public CodeFormatterApplication()
Method Detail

run

public Object run(Object args)
           throws Exception
Runs the Java code formatter application

Specified by:
run in interface IPlatformRunnable
Throws:
Exception

Eclipse JDT
Release 3.2

Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.