From 66de5a6c2ca3c5ab33078fdde503ce96ace01e65 Mon Sep 17 00:00:00 2001
From: Patrick Plitzner
Date: Fri, 6 Dec 2019 16:03:40 +0100
Subject: [PATCH] ref #8450 Fix refresh after changes
---
.../editor/descriptiveDataSet/character/CharacterEditor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
index d88a4f1a3..1e74c87b1 100644
--- a/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
+++ b/eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java
@@ -231,7 +231,7 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
//add new Character to feature tree
CdmStore.getService(IFeatureNodeService.class).createChildFeatureNode(parent.getUuid(), character, vocabulary.getUuid());
}
- characterTreeEditorComposite.getViewer().setInput(characterTreeEditorComposite.getViewer().getInput());
+ refresh();
}
});
@@ -441,7 +441,7 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
public void refresh(){
structuresTreeEditorComposite.getViewer().refresh();
propertiesTreeEditorComposite.getViewer().refresh();
- characterTreeEditorComposite.getViewer().refresh();
+ characterTreeEditorComposite.getViewer().setInput(characterTreeEditorComposite.getViewer().getInput());
}
private class FeatureTreeChooserListener extends SelectionAdapter{
--
2.34.1