add type for TransactionTreeNode

This commit is contained in:
Eyck Jentzsch 2020-11-04 08:50:04 +01:00
parent 2e806f7b86
commit f474e38687
3 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,6 @@ public class TransactionDetails {
treeViewer = new TreeViewer(top); treeViewer = new TreeViewer(top);
treeViewer.setContentProvider(new AbstractTransactionTreeContentProvider(waveformViewerPart) { treeViewer.setContentProvider(new AbstractTransactionTreeContentProvider(waveformViewerPart) {
@Override @Override
public Object[] getElements(Object element) { public Object[] getElements(Object element) {
return new Object[]{ return new Object[]{

View File

@ -43,6 +43,7 @@ public class TransactionTreeNode implements Comparable<TransactionTreeNode>{
*/ */
public String toString(){ public String toString(){
switch(type){ switch(type){
case TX: return element.toString();
case PROPS: return Messages.TransactionDetails_10; case PROPS: return Messages.TransactionDetails_10;
case ATTRS: return Messages.TransactionDetails_11; case ATTRS: return Messages.TransactionDetails_11;
case IN_REL: return Messages.TransactionDetails_12; case IN_REL: return Messages.TransactionDetails_12;

View File

@ -4,6 +4,7 @@ package com.minres.scviewer.e4.application.parts.txTableTree;
* The Enum Type. * The Enum Type.
*/ */
public enum TransactionTreeNodeType { public enum TransactionTreeNodeType {
TX, /** The transaction. */
PROPS, /** The props. */ PROPS, /** The props. */
ATTRS, /** The attrs. */ ATTRS, /** The attrs. */
IN_REL, /** The in rel. */ IN_REL, /** The in rel. */