- Fixed navigation and selection issue

- added some null checking
- corrected direction of releations
This commit is contained in:
ejentzsx
2015-02-11 09:32:46 +01:00
parent 54fb59db04
commit af1f21cac9
9 changed files with 134 additions and 78 deletions

View File

@ -142,8 +142,8 @@ public class TextDbLoader implements IWaveformDbLoader{
}
break
case "tx_relation"://matcher = line =~ /^tx_relation\s+\"(\S+)\"\s+(\d+)\s+(\d+)$/
Tx tr1= transactionsById[Integer.parseInt(tokens[2])]
Tx tr2= transactionsById[Integer.parseInt(tokens[3])]
Tx tr2= transactionsById[Integer.parseInt(tokens[2])]
Tx tr1= transactionsById[Integer.parseInt(tokens[3])]
def relType=tokens[1][1..-2]
if(!relationTypes.containsKey(relType)) relationTypes[relType]=new RelationType(relType)
def rel = new TxRelation(relationTypes[relType], tr1, tr2)

View File

@ -37,6 +37,7 @@ class Tx implements ITx {
this.stream=stream
this.generator=generator
this.beginTime=begin
this.endTime=begin
}
@Override