pass the modified attributes to the editors

This commit is contained in:
hneemann 2017-05-30 18:18:36 +02:00
parent 5518310bd2
commit 65c6fbebf2

View File

@ -71,9 +71,9 @@ public class AttributeDialog extends JDialog {
topMostTextComponent = null;
for (Key key : list) {
Editor e = EditorFactory.INSTANCE.create(key, elementAttributes.get(key));
Editor e = EditorFactory.INSTANCE.create(key, modifiedAttributes.get(key));
editors.add(new EditorHolder(e, key));
e.addToPanel(panel, key, elementAttributes, this);
e.addToPanel(panel, key, modifiedAttributes, this);
if (topMostTextComponent == null && e instanceof EditorFactory.StringEditor)
topMostTextComponent = ((EditorFactory.StringEditor) e).getTextComponent();