add type for TransactionTreeNode
This commit is contained in:
parent
2e806f7b86
commit
f474e38687
|
@ -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[]{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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. */
|
||||||
|
|
Loading…
Reference in New Issue