Search in sources :

Example 1 with EclipseCompilerOptions

use of org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions in project intellij-community by JetBrains.

the class JpsEclipseCompilerOptionsSerializer method loadExtension.

@Override
public void loadExtension(@NotNull JpsProject project, @NotNull Element componentTag) {
    JpsJavaCompilerConfiguration configuration = JpsJavaExtensionService.getInstance().getOrCreateCompilerConfiguration(project);
    EclipseCompilerOptions options = XmlSerializer.deserialize(componentTag, EclipseCompilerOptions.class);
    configuration.setCompilerOptions(myCompilerId, options);
}
Also used : JpsJavaCompilerConfiguration(org.jetbrains.jps.model.java.compiler.JpsJavaCompilerConfiguration) EclipseCompilerOptions(org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions)

Example 2 with EclipseCompilerOptions

use of org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions in project intellij-community by JetBrains.

the class JpsEclipseCompilerOptionsSerializer method loadExtensionWithDefaultSettings.

@Override
public void loadExtensionWithDefaultSettings(@NotNull JpsProject project) {
    JpsJavaCompilerConfiguration configuration = JpsJavaExtensionService.getInstance().getOrCreateCompilerConfiguration(project);
    configuration.setCompilerOptions(myCompilerId, new EclipseCompilerOptions());
}
Also used : JpsJavaCompilerConfiguration(org.jetbrains.jps.model.java.compiler.JpsJavaCompilerConfiguration) EclipseCompilerOptions(org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions)

Aggregations

EclipseCompilerOptions (org.jetbrains.jps.model.java.compiler.EclipseCompilerOptions)2 JpsJavaCompilerConfiguration (org.jetbrains.jps.model.java.compiler.JpsJavaCompilerConfiguration)2