Classify streams and generators consistently across database loaders
This commit is contained in:
1 parent
591fe2c4c7
commit
6668151a53
19 files changed
+149
-81
No files matched your search
+5
-5
@@ -633,7 +633,7 @@ public class WaveformView implements IWaveformView {
|
||||
private void addPainter(boolean even, TrackEntry streamEntry) {
|
||||
streamEntry.height = styleProvider.getTrackHeight();
|
||||
streamEntry.vOffset = tracksVerticalHeight;
|
||||
if (streamEntry.waveform.getType() == WaveformType.STREAM) {
|
||||
if (streamEntry.waveform.getType().isTransaction()) {
|
||||
streamEntry.currentValue = "";
|
||||
streamEntry.height *= streamEntry.waveform.getRowCount();
|
||||
IWaveformPainter painter = new StreamPainter(waveformCanvas, even, streamEntry);
|
||||
@@ -690,7 +690,7 @@ public class WaveformView implements IWaveformView {
|
||||
else
|
||||
entry.currentValue = Double.toString(val);
|
||||
}
|
||||
} else if (entry.waveform.getType() == WaveformType.STREAM) {
|
||||
} else if (entry.waveform.getType().isTransaction()) {
|
||||
ITx[] resultsList = new ITx[entry.waveform.getRowCount()];
|
||||
EventEntry firstTx = entry.waveform.getEvents().floorEntry(time);
|
||||
if (firstTx != null) {
|
||||
@@ -956,7 +956,7 @@ public class WaveformView implements IWaveformView {
|
||||
return;
|
||||
TrackEntry selectedWaveform = currentWaveformSelection.size() == 1 ? currentWaveformSelection.get(0)
|
||||
: getEntryFor(currentTxSelection);
|
||||
if (selectedWaveform.waveform.getType() == WaveformType.STREAM && currentTxSelection != null) {
|
||||
if (selectedWaveform.waveform.getType().isTransaction() && currentTxSelection != null) {
|
||||
if (relationType.equals(IWaveformView.NEXT_PREV_IN_STREAM)) {
|
||||
ITx transaction = null;
|
||||
if (direction == GotoDirection.NEXT) {
|
||||
@@ -1078,7 +1078,7 @@ public class WaveformView implements IWaveformView {
|
||||
TrackEntry sel = currentWaveformSelection.get(0);
|
||||
long time = getCursorTime();
|
||||
IEventList map = null;
|
||||
if (sel.waveform.getType() == WaveformType.STREAM || sel.waveform.getType() == WaveformType.SIGNAL) {
|
||||
if (sel.waveform.getType().isTransaction() || sel.waveform.getType() == WaveformType.SIGNAL) {
|
||||
map = sel.waveform.getEvents();
|
||||
}
|
||||
if (map != null) {
|
||||
@@ -1634,7 +1634,7 @@ public class WaveformView implements IWaveformView {
|
||||
}
|
||||
|
||||
public boolean waveformsContainsTx() {
|
||||
return streams.stream().filter(e -> e.waveform.getType() == WaveformType.STREAM).findFirst().isPresent();
|
||||
return streams.stream().filter(e -> e.waveform.getType().isTransaction()).findFirst().isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user