Commit 1fdf4aba authored by Tuukka Lehtonen's avatar Tuukka Lehtonen
Browse files

Allow overriding the node TextGridNode type created by TextGridStyle

gitlab #723
parent 9f4f62a0
......@@ -182,8 +182,12 @@ public abstract class TextGridStyle extends StyleBase<MonitorTextGridResult> {
private static final Comparator<Pair<TextGridStyle, MonitorTextGridResult>> ROW_PRIORITY_COMPARATOR =
(o1, o2) -> Double.compare(o1.first.getPriority(), o2.first.getPriority());
private static void refreshAll(EvaluationContext observer, INode _node) {
final TextGridNode node = ProfileVariables.claimChild(_node, "", "TextGridStyle", TextGridNode.class, observer);
protected Class<? extends TextGridNode> getTextGridNode() {
return TextGridNode.class;
}
private void refreshAll(EvaluationContext observer, INode _node) {
final TextGridNode node = ProfileVariables.claimChild(_node, "", "TextGridStyle", getTextGridNode(), observer);
if (node == null)
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment