Klasse CodeFormatterApplication

java.lang.Object
org.aspectj.org.eclipse.jdt.core.formatter.CodeFormatterApplication
Alle implementierten Schnittstellen:
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.

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.

Seit:
3.2
Autor:
Ben Konrath Ungültige Eingabe: "<"[email protected]>
  • Feldübersicht

    Von Schnittstelle geerbte Felder org.eclipse.equinox.app.IApplication

    EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    start(org.eclipse.equinox.app.IApplicationContext context)
    Runs the Java code formatter application
    void
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • CodeFormatterApplication

      public CodeFormatterApplication()
  • Methodendetails

    • start

      public Object start(org.eclipse.equinox.app.IApplicationContext context) throws Exception
      Runs the Java code formatter application
      Angegeben von:
      start in Schnittstelle org.eclipse.equinox.app.IApplication
      Löst aus:
      Exception
    • stop

      public void stop()
      Angegeben von:
      stop in Schnittstelle org.eclipse.equinox.app.IApplication