mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-29 16:01:19 -04:00
pass the modified attributes to the editors
This commit is contained in:
parent
5518310bd2
commit
65c6fbebf2
@ -71,9 +71,9 @@ public class AttributeDialog extends JDialog {
|
|||||||
|
|
||||||
topMostTextComponent = null;
|
topMostTextComponent = null;
|
||||||
for (Key key : list) {
|
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));
|
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)
|
if (topMostTextComponent == null && e instanceof EditorFactory.StringEditor)
|
||||||
topMostTextComponent = ((EditorFactory.StringEditor) e).getTextComponent();
|
topMostTextComponent = ((EditorFactory.StringEditor) e).getTextComponent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user