From 54124d13bfd9bab3370735a8e9c0c11c5dee4f95 Mon Sep 17 00:00:00 2001 From: eyck Date: Mon, 19 Oct 2020 07:09:00 +0200 Subject: [PATCH 1/2] fix trace add problem when only a track is selected --- .../scviewer/e4/application/parts/WaveformViewer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java index 96e65cc..f11917f 100644 --- a/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java +++ b/plugins/com.minres.scviewer.e4.application/src/com/minres/scviewer/e4/application/parts/WaveformViewer.java @@ -1013,7 +1013,16 @@ public class WaveformViewer implements IFileChangeListener, IPreferenceChangeLis } else { waveformPane.getStreamList().addAll(streams); } + } else if(first instanceof TrackEntry) { + TrackEntry trackEntry = (TrackEntry) first; + if (insert) { + int index = waveformPane.getStreamList().indexOf(trackEntry); + waveformPane.getStreamList().addAll(index, streams); + } else { + waveformPane.getStreamList().addAll(streams); + } } + } setFocus(); } From 2ba6822f2b9e5f8d2ceb7118acc1b54b1557b365 Mon Sep 17 00:00:00 2001 From: eyck Date: Mon, 19 Oct 2020 07:09:11 +0200 Subject: [PATCH 2/2] update version numbers --- plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF | 2 +- plugins/com.minres.scviewer.e4.application/pom.xml | 2 +- products/com.minres.scviewer.e4.product/pom.xml | 2 +- products/com.minres.scviewer.e4.product/scviewer.product | 2 +- products/com.minres.scviewer.e4.product_slim/pom.xml | 2 +- products/com.minres.scviewer.e4.product_slim/scviewer.product | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF b/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF index 8ee0898..6be7a97 100644 --- a/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF +++ b/plugins/com.minres.scviewer.e4.application/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name Bundle-SymbolicName: com.minres.scviewer.e4.application;singleton:=true -Bundle-Version: 2.7.1.qualifier +Bundle-Version: 2.8.0.qualifier Bundle-Vendor: %Bundle-Vendor Require-Bundle: javax.inject;bundle-version="1.0.0", org.eclipse.core.runtime;bundle-version="3.11.1", diff --git a/plugins/com.minres.scviewer.e4.application/pom.xml b/plugins/com.minres.scviewer.e4.application/pom.xml index 52049f1..3565e54 100644 --- a/plugins/com.minres.scviewer.e4.application/pom.xml +++ b/plugins/com.minres.scviewer.e4.application/pom.xml @@ -1,7 +1,7 @@ 4.0.0 com.minres.scviewer.e4.application - 2.7.1-SNAPSHOT + 2.8.0-SNAPSHOT com.minres.scviewer com.minres.scviewer.parent diff --git a/products/com.minres.scviewer.e4.product/pom.xml b/products/com.minres.scviewer.e4.product/pom.xml index f7b01e4..8b61be5 100644 --- a/products/com.minres.scviewer.e4.product/pom.xml +++ b/products/com.minres.scviewer.e4.product/pom.xml @@ -10,7 +10,7 @@ ../.. com.minres.scviewer.e4.product - 2.7.1-SNAPSHOT + 2.8.0-SNAPSHOT eclipse-repository com.minres.scviewer diff --git a/products/com.minres.scviewer.e4.product/scviewer.product b/products/com.minres.scviewer.e4.product/scviewer.product index 9846949..717b298 100644 --- a/products/com.minres.scviewer.e4.product/scviewer.product +++ b/products/com.minres.scviewer.e4.product/scviewer.product @@ -1,7 +1,7 @@ - + diff --git a/products/com.minres.scviewer.e4.product_slim/pom.xml b/products/com.minres.scviewer.e4.product_slim/pom.xml index a97396f..6eb7862 100644 --- a/products/com.minres.scviewer.e4.product_slim/pom.xml +++ b/products/com.minres.scviewer.e4.product_slim/pom.xml @@ -10,7 +10,7 @@ ../.. com.minres.scviewer.e4.product_slim - 2.7.1-SNAPSHOT + 2.8.0-SNAPSHOT eclipse-repository com.minres.scviewer diff --git a/products/com.minres.scviewer.e4.product_slim/scviewer.product b/products/com.minres.scviewer.e4.product_slim/scviewer.product index 69ce508..48bbe39 100644 --- a/products/com.minres.scviewer.e4.product_slim/scviewer.product +++ b/products/com.minres.scviewer.e4.product_slim/scviewer.product @@ -1,7 +1,7 @@ - +