From b8e8fbe659fd97cff44bf2cde3c069879a5a94d6 Mon Sep 17 00:00:00 2001 From: Sergey Vasiliev Date: Tue, 11 Jul 2006 13:00:44 +0400 Subject: [PATCH] a minor fix --- .../util/xml/ui/AbstractDomElementComponent.java | 36 ++-------------------- .../intellij/util/xml/ui/DomCollectionControl.java | 1 + 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/dom/openapi/src/com/intellij/util/xml/ui/AbstractDomElementComponent.java b/dom/openapi/src/com/intellij/util/xml/ui/AbstractDomElementComponent.java index 55d156e32c..cd642bc0e2 100644 --- a/dom/openapi/src/com/intellij/util/xml/ui/AbstractDomElementComponent.java +++ b/dom/openapi/src/com/intellij/util/xml/ui/AbstractDomElementComponent.java @@ -1,10 +1,8 @@ package com.intellij.util.xml.ui; -import com.intellij.util.xml.DomElement; import com.intellij.openapi.Disposable; +import com.intellij.util.xml.DomElement; -import java.util.List; -import java.util.ArrayList; import java.awt.*; @@ -12,9 +10,9 @@ import java.awt.*; * User: Sergey.Vasiliev * Date: Nov 18, 2005 */ -public abstract class AbstractDomElementComponent extends CompositeCommittable implements CommittablePanel, Disposable { +public abstract class AbstractDomElementComponent extends CompositeCommittable + implements CommittablePanel, Disposable { protected T myDomElement; - protected List myRelatedCommitable = new ArrayList(); protected AbstractDomElementComponent(final T domElement) { myDomElement = domElement; @@ -32,32 +30,4 @@ public abstract class AbstractDomElementComponent extends } } } - - - public List getRelatedCommitable() { - return myRelatedCommitable; - } - - public void addRelatedCommitable(final Committable relatedCommitable) { - myRelatedCommitable.add(relatedCommitable); - } - - public void removeRelatedCommitable(final Committable relatedCommitable) { - myRelatedCommitable.remove(relatedCommitable); - } - - - public void commit() { - super.commit(); - //for (Committable committable : myRelatedCommitable) { - // committable.commit(); - //} - } - - public void reset() { - super.reset(); - for (Committable committable : myRelatedCommitable) { - committable.reset(); - } - } } diff --git a/dom/openapi/src/com/intellij/util/xml/ui/DomCollectionControl.java b/dom/openapi/src/com/intellij/util/xml/ui/DomCollectionControl.java index 86042db127..357272424e 100644 --- a/dom/openapi/src/com/intellij/util/xml/ui/DomCollectionControl.java +++ b/dom/openapi/src/com/intellij/util/xml/ui/DomCollectionControl.java @@ -270,6 +270,7 @@ public class DomCollectionControl extends DomUIControl { } } myCollectionPanel.setErrorMessages(messages.toArray(new String[messages.size()])); + myCollectionPanel.repaint(); } public void dispose() { -- 2.11.4.GIT