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.setContentProvider(new AbstractTransactionTreeContentProvider(waveformViewerPart) {
@Override
public Object[] getElements(Object element) {
return new Object[]{

View File

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

View File

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