migrate AppletConfiguration and BndRunConfiguration to BaseState — part 4, fix tests

This commit is contained in:
Vladimir Krivosheev
2017-12-06 13:40:46 +01:00
parent 027b6a71cb
commit e8d4ec4590
2 changed files with 4 additions and 6 deletions
@@ -1,4 +1,6 @@
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
/*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.execution.applet;
import com.intellij.execution.*;
@@ -171,7 +173,7 @@ public class AppletConfiguration extends ModuleBasedConfiguration<JavaRunConfigu
@Override
public Element getState() {
Element element = new Element("state");
super.writeState(element);
super.writeExternal(element);
if (myAppletParameters != null) {
for (AppletParameter myAppletParameter : myAppletParameters) {
@@ -224,10 +224,6 @@ public abstract class RunConfigurationBase extends UserDataHolderBase implements
@Override
public void writeExternal(@NotNull Element element) throws WriteExternalException {
writeState(element);
}
protected void writeState(@NotNull Element element) {
JDOMExternalizerUtil.addChildren(element, LOG_FILE, myLogFiles);
JDOMExternalizerUtil.addChildren(element, PREDEFINED_LOG_FILE_ELEMENT, myPredefinedLogFiles);
XmlSerializer.serializeObjectInto(myOptions, element);