fix name display in waveform view (#6)
This commit is contained in:
		| @@ -30,6 +30,8 @@ import com.minres.scviewer.database.tx.ITxEvent; | |||||||
|  */ |  */ | ||||||
| abstract class AbstractTxStream extends HierNode implements IWaveform { | abstract class AbstractTxStream extends HierNode implements IWaveform { | ||||||
|  |  | ||||||
|  | 	private final String fullName; | ||||||
|  |  | ||||||
| 	/** The id. */ | 	/** The id. */ | ||||||
| 	private Long id; | 	private Long id; | ||||||
|  |  | ||||||
| @@ -51,10 +53,20 @@ abstract class AbstractTxStream extends HierNode implements IWaveform { | |||||||
| 	 */ | 	 */ | ||||||
| 	protected AbstractTxStream(TextDbLoader loader, Long id, String name) { | 	protected AbstractTxStream(TextDbLoader loader, Long id, String name) { | ||||||
| 		super(name); | 		super(name); | ||||||
|  | 		fullName=name; | ||||||
| 		this.loader = loader; | 		this.loader = loader; | ||||||
| 		this.id = id; | 		this.id = id; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	/** | ||||||
|  | 	 * Gets the full hierarchical name. | ||||||
|  | 	 * | ||||||
|  | 	 * @return the full name | ||||||
|  | 	 */ | ||||||
|  | 	@Override | ||||||
|  | 	public String getFullName() { | ||||||
|  | 		return  fullName; | ||||||
|  | 	} | ||||||
| 	/** | 	/** | ||||||
| 	 * Adds the event. | 	 * Adds the event. | ||||||
| 	 * | 	 * | ||||||
|   | |||||||
| @@ -80,7 +80,7 @@ public class HierNode implements IHierNode { | |||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
| 	 * Gets the full name. | 	 * Gets the full hierarchical name. | ||||||
| 	 * | 	 * | ||||||
| 	 * @return the full name | 	 * @return the full name | ||||||
| 	 */ | 	 */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user