From b1148922d8962aded3ca1442fadaea4a431e0656 Mon Sep 17 00:00:00 2001 From: eyck Date: Thu, 11 Jun 2020 14:34:14 +0200 Subject: [PATCH] implement feature-based product definition --- .../scviewer.product | 143 +++++------------- .../feature.xml | 7 + .../com.minres.scviewer.feature/feature.xml | 6 +- .../feature.xml | 14 ++ .../database/text/TextDbLoader.groovy | 2 +- 5 files changed, 67 insertions(+), 105 deletions(-) diff --git a/com.minres.scviewer.e4.product/scviewer.product b/com.minres.scviewer.e4.product/scviewer.product index 3fc9e81..c8548ff 100644 --- a/com.minres.scviewer.e4.product/scviewer.product +++ b/com.minres.scviewer.e4.product/scviewer.product @@ -1,15 +1,18 @@ - + - -clearPersistedState - -Xmx2G -Dosgi.instance.area=@user.home/.scviewer -Dosgi.instance.area.default=@user.home/.scviewer - -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts + -clearPersistedState + + -Xmx2G -Dosgi.instance.area=@user.home/.scviewer -Dosgi.instance.area.default=@user.home/.scviewer + + -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts + @@ -41,105 +44,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/features/com.minres.scviewer.database.feature/feature.xml b/features/com.minres.scviewer.database.feature/feature.xml index 7550686..72e69a7 100644 --- a/features/com.minres.scviewer.database.feature/feature.xml +++ b/features/com.minres.scviewer.database.feature/feature.xml @@ -85,4 +85,11 @@ http://www.eclipse.org/legal/epl-v10.html version="0.0.0" unpack="false"/> + + diff --git a/features/com.minres.scviewer.feature/feature.xml b/features/com.minres.scviewer.feature/feature.xml index f4f471e..45d6426 100644 --- a/features/com.minres.scviewer.feature/feature.xml +++ b/features/com.minres.scviewer.feature/feature.xml @@ -6,9 +6,9 @@ provider-name="%providerName"> - A viewer for SystemC Verification Library transactions and VCD -signals. It supports a SQLite based recording as well as the built-in -text base recording. + A viewer for SystemC Verification Library transactions and VCD +signals. It supports a SQLite based recording as well as the +built-in text base recording. diff --git a/features/com.minres.scviewer.ui.feature/feature.xml b/features/com.minres.scviewer.ui.feature/feature.xml index f9c3d4b..0ba3312 100644 --- a/features/com.minres.scviewer.ui.feature/feature.xml +++ b/features/com.minres.scviewer.ui.feature/feature.xml @@ -17,4 +17,18 @@ [Enter License Description here.] + + + + diff --git a/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/TextDbLoader.groovy b/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/TextDbLoader.groovy index 6fd56d6..10947f9 100644 --- a/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/TextDbLoader.groovy +++ b/plugins/com.minres.scviewer.database.text/src/com/minres/scviewer/database/text/TextDbLoader.groovy @@ -70,7 +70,7 @@ public class TextDbLoader implements IWaveformDbLoader{ try { def gzipped = isGzipped(file) if(isTxfile(gzipped?new GZIPInputStream(new FileInputStream(file)):new FileInputStream(file))){ - def mapDbFile = File.createTempFile("."+file.name, "tmp", file.parentFile) + def mapDbFile = File.createTempFile("."+file.name, null /*"tmp"*/, null /*file.parentFile*/) mapDbFile.delete() mapDbFile.deleteOnExit() this.mapDb = DBMaker