Example usage for org.eclipse.jdt.core JavaCore JavaCore

List of usage examples for org.eclipse.jdt.core JavaCore JavaCore

Introduction

In this page you can find the example usage for org.eclipse.jdt.core JavaCore JavaCore.

Prototype

public JavaCore() 

Source Link

Document

Creates the Java core plug-in.

Usage

From source file:com.diffplug.spotless.extra.eclipse.java.EclipseJdtFormatterStepImpl.java

License:Apache License

public EclipseJdtFormatterStepImpl(Properties settings) throws Exception {
    SpotlessEclipseFramework.setup(plugins -> {
        plugins.applyDefault();/*from  w  w  w  . j a  v  a2 s . c om*/
        plugins.add(new JavaCore());
    });
    this.codeFormatter = ToolFactory.createCodeFormatter(settings, ToolFactory.M_FORMAT_EXISTING);
}