From e264ab2cbe3151757de6cbdd41314b26eebcb99f Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 24 Feb 2021 06:56:28 +0000 Subject: [PATCH] fix name display in waveform view (#6) --- .../scviewer/database/text/AbstractTxStream.java | 12 ++++++++++++ .../src/com/minres/scviewer/database/HierNode.java | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/AbstractTxStream.java b/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/AbstractTxStream.java index 33a4a2a..b71c974 100644 --- a/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/AbstractTxStream.java +++ b/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/AbstractTxStream.java @@ -30,6 +30,8 @@ import com.minres.scviewer.database.tx.ITxEvent; */ abstract class AbstractTxStream extends HierNode implements IWaveform { + private final String fullName; + /** The id. */ private Long id; @@ -51,10 +53,20 @@ abstract class AbstractTxStream extends HierNode implements IWaveform { */ protected AbstractTxStream(TextDbLoader loader, Long id, String name) { super(name); + fullName=name; this.loader = loader; this.id = id; } + /** + * Gets the full hierarchical name. + * + * @return the full name + */ + @Override + public String getFullName() { + return fullName; + } /** * Adds the event. * diff --git a/plugins/com.minres.scviewer.database/src/com/minres/scviewer/database/HierNode.java b/plugins/com.minres.scviewer.database/src/com/minres/scviewer/database/HierNode.java index c37416b..9abf33f 100644 --- a/plugins/com.minres.scviewer.database/src/com/minres/scviewer/database/HierNode.java +++ b/plugins/com.minres.scviewer.database/src/com/minres/scviewer/database/HierNode.java @@ -80,7 +80,7 @@ public class HierNode implements IHierNode { } /** - * Gets the full name. + * Gets the full hierarchical name. * * @return the full name */