mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
migrate AppletConfiguration and BndRunConfiguration to BaseState — part 4, fix tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user