Search in sources :

Example 6 with ArtifactPropertiesState

use of org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState in project intellij-community by JetBrains.

the class JpsJavaFxArtifactPropertiesSerializer method saveProperties.

@Override
public void saveProperties(JpsJavaFxArtifactProperties properties, List<ArtifactPropertiesState> stateList) {
    final ArtifactPropertiesState state = findApplicationProperties(stateList);
    if (state == null) {
        return;
    }
    state.setOptions(XmlSerializer.serialize(properties));
}
Also used : ArtifactPropertiesState(org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState)

Example 7 with ArtifactPropertiesState

use of org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState in project intellij-community by JetBrains.

the class JpsJavaFxArtifactPropertiesSerializer method doLoadProperties.

private static JpsJavaFxArtifactProperties.MyState doLoadProperties(List<ArtifactPropertiesState> stateList) {
    final ArtifactPropertiesState state = findApplicationProperties(stateList);
    if (state == null) {
        return null;
    }
    final Element options = state.getOptions();
    if (options == null) {
        return null;
    }
    return XmlSerializer.deserialize(options, JpsJavaFxArtifactProperties.MyState.class);
}
Also used : ArtifactPropertiesState(org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState) Element(org.jdom.Element)

Example 8 with ArtifactPropertiesState

use of org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState in project intellij-community by JetBrains.

the class JpsJavaFxPreloaderArtifactPropertiesSerializer method doLoadProperties.

private static JpsJavaFxPreloaderArtifactProperties.MyState doLoadProperties(List<ArtifactPropertiesState> stateList) {
    final ArtifactPropertiesState state = findApplicationProperties(stateList);
    if (state == null) {
        return null;
    }
    final Element options = state.getOptions();
    if (options == null) {
        return null;
    }
    return XmlSerializer.deserialize(options, JpsJavaFxPreloaderArtifactProperties.MyState.class);
}
Also used : ArtifactPropertiesState(org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState) Element(org.jdom.Element)

Example 9 with ArtifactPropertiesState

use of org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState in project intellij-community by JetBrains.

the class JpsJavaFxPreloaderArtifactPropertiesSerializer method saveProperties.

@Override
public void saveProperties(JpsJavaFxPreloaderArtifactProperties properties, List<ArtifactPropertiesState> stateList) {
    final ArtifactPropertiesState state = findApplicationProperties(stateList);
    if (state == null) {
        return;
    }
    state.setOptions(XmlSerializer.serialize(properties));
}
Also used : ArtifactPropertiesState(org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState)

Aggregations

ArtifactPropertiesState (org.jetbrains.jps.model.serialization.artifact.ArtifactPropertiesState)9 Element (org.jdom.Element)5 SkipDefaultValuesSerializationFilters (com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters)1 Nullable (org.jetbrains.annotations.Nullable)1 ArtifactManagerState (org.jetbrains.jps.model.serialization.artifact.ArtifactManagerState)1 ArtifactState (org.jetbrains.jps.model.serialization.artifact.ArtifactState)1