use of com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters in project intellij-plugins by JetBrains.
the class DartRunConfigurationBase method writeExternal.
@Override
public void writeExternal(final Element element) throws WriteExternalException {
super.writeExternal(element);
XmlSerializer.serializeInto(getRunnerParameters(), element, new SkipDefaultValuesSerializationFilters());
}
use of com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters in project intellij-community by JetBrains.
the class FacetUtil method saveFacetConfiguration.
public static Element saveFacetConfiguration(final FacetConfiguration configuration) throws WriteExternalException {
if (configuration instanceof PersistentStateComponent) {
Object state = ((PersistentStateComponent) configuration).getState();
if (state instanceof Element)
return ((Element) state);
return XmlSerializer.serialize(state, new SkipDefaultValuesSerializationFilters());
} else {
final Element config = new Element(JpsFacetSerializer.CONFIGURATION_TAG);
configuration.writeExternal(config);
return config;
}
}
use of com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters in project intellij-community by JetBrains.
the class RunnerLayout method write.
@NotNull
public Element write(@NotNull Element parentNode) {
for (ViewImpl eachState : myViews.values()) {
if (myLightWeightIds != null && myLightWeightIds.contains(eachState.getID())) {
continue;
}
parentNode.addContent(XmlSerializer.serialize(eachState));
}
SkipDefaultValuesSerializationFilters filter = new SkipDefaultValuesSerializationFilters();
for (TabImpl eachTab : myTabs) {
if (isUsed(eachTab)) {
parentNode.addContent(XmlSerializer.serialize(eachTab, filter));
}
}
parentNode.addContent(XmlSerializer.serialize(myGeneral, filter));
return parentNode;
}
use of com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters in project intellij-plugins by JetBrains.
the class DartRemoteDebugConfiguration method writeExternal.
@Override
public void writeExternal(final Element element) throws WriteExternalException {
super.writeExternal(element);
XmlSerializer.serializeInto(myParameters, element, new SkipDefaultValuesSerializationFilters());
}
use of com.intellij.util.xmlb.SkipDefaultValuesSerializationFilters in project intellij-plugins by JetBrains.
the class BndRunConfigurationBase method writeExternal.
@Override
public void writeExternal(Element element) throws WriteExternalException {
super.writeExternal(element);
RunConfiguration template = getFactory().createTemplateConfiguration(getProject());
XmlSerializer.serializeInto(this, element, new SkipDefaultValuesSerializationFilters(template));
}
Aggregations