use of com.intellij.util.xmlb.annotations.Attribute in project intellij-plugins by JetBrains.
the class JpsFlexProjectLevelCompilerOptionsExtension method loadExtension.
private static void loadExtension(final JpsProject project, final Element componentTag) {
final JpsFlexProjectLevelCompilerOptionsExtension extension = new JpsFlexProjectLevelCompilerOptionsExtension();
final JpsFlexCompilerOptionsImpl options = (JpsFlexCompilerOptionsImpl) extension.getProjectLevelCompilerOptions();
final Attribute annotation = JpsFlexCompilerOptionsImpl.State.class.getAnnotation(Attribute.class);
final Element compilerOptionsTag = componentTag.getChild(annotation != null ? annotation.value() : "compiler-options");
if (compilerOptionsTag != null) {
options.loadState(XmlSerializer.deserialize(compilerOptionsTag, JpsFlexCompilerOptionsImpl.State.class));
}
project.getContainer().setChild(ROLE, extension);
}
Aggregations