From 20c399450796a6f3e37ab97768094e79555e8038 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Mon, 27 Aug 2018 23:11:51 +0200 Subject: [PATCH] Initial plugin version --- .../.classpath | 7 +++ com.minres.scviewer.database.binary/.project | 33 +++++++++++ .../.settings/org.eclipse.jdt.core.prefs | 7 +++ .../.settings/org.eclipse.pde.core.prefs | 4 ++ .../org.eclipse.pde.ds.annotations.prefs | 5 ++ .../META-INF/MANIFEST.MF | 14 +++++ .../OSGI-INF/component.xml | 7 +++ .../database/binary/BinaryDbLoader.class | Bin 0 -> 1603 bytes .../build.properties | 5 ++ .../database/binary/BinaryDbLoader.java | 56 ++++++++++++++++++ 10 files changed, 138 insertions(+) create mode 100644 com.minres.scviewer.database.binary/.classpath create mode 100644 com.minres.scviewer.database.binary/.project create mode 100644 com.minres.scviewer.database.binary/.settings/org.eclipse.jdt.core.prefs create mode 100644 com.minres.scviewer.database.binary/.settings/org.eclipse.pde.core.prefs create mode 100644 com.minres.scviewer.database.binary/.settings/org.eclipse.pde.ds.annotations.prefs create mode 100644 com.minres.scviewer.database.binary/META-INF/MANIFEST.MF create mode 100644 com.minres.scviewer.database.binary/OSGI-INF/component.xml create mode 100644 com.minres.scviewer.database.binary/bin/com/minres/scviewer/database/binary/BinaryDbLoader.class create mode 100644 com.minres.scviewer.database.binary/build.properties create mode 100644 com.minres.scviewer.database.binary/src/com/minres/scviewer/database/binary/BinaryDbLoader.java diff --git a/com.minres.scviewer.database.binary/.classpath b/com.minres.scviewer.database.binary/.classpath new file mode 100644 index 0000000..eca7bdb --- /dev/null +++ b/com.minres.scviewer.database.binary/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/com.minres.scviewer.database.binary/.project b/com.minres.scviewer.database.binary/.project new file mode 100644 index 0000000..3b2e868 --- /dev/null +++ b/com.minres.scviewer.database.binary/.project @@ -0,0 +1,33 @@ + + + com.minres.scviewer.database.binary + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + org.eclipse.pde.ds.core.builder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/com.minres.scviewer.database.binary/.settings/org.eclipse.jdt.core.prefs b/com.minres.scviewer.database.binary/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/com.minres.scviewer.database.binary/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.core.prefs b/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.core.prefs new file mode 100644 index 0000000..e8ff8be --- /dev/null +++ b/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.core.prefs @@ -0,0 +1,4 @@ +eclipse.preferences.version=1 +pluginProject.equinox=false +pluginProject.extensions=false +resolve.requirebundle=false diff --git a/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.ds.annotations.prefs b/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.ds.annotations.prefs new file mode 100644 index 0000000..c61da6e --- /dev/null +++ b/com.minres.scviewer.database.binary/.settings/org.eclipse.pde.ds.annotations.prefs @@ -0,0 +1,5 @@ +eclipse.preferences.version=1 +enabled=true +path=OSGI-INF +validationErrorLevel=error +validationErrorLevel.missingImplicitUnbindMethod=error diff --git a/com.minres.scviewer.database.binary/META-INF/MANIFEST.MF b/com.minres.scviewer.database.binary/META-INF/MANIFEST.MF new file mode 100644 index 0000000..717835e --- /dev/null +++ b/com.minres.scviewer.database.binary/META-INF/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Binary Database +Bundle-SymbolicName: com.minres.scviewer.database.binary +Bundle-Version: 1.0.0.qualifier +Bundle-Vendor: MINRES Technologies GmbH +Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +Import-Package: org.eclipse.osgi.framework.console;version="1.0.0", + org.osgi.framework;version="1.3.0", + org.osgi.service.component.annotations;version="1.2.0";resolution:="optional", + org.osgi.util.tracker;version="1.3.1" +Automatic-Module-Name: com.minres.scviewer.database.binary +Service-Component: OSGI-INF/*.xml +Require-Bundle: com.minres.scviewer.database diff --git a/com.minres.scviewer.database.binary/OSGI-INF/component.xml b/com.minres.scviewer.database.binary/OSGI-INF/component.xml new file mode 100644 index 0000000..9a0d7b8 --- /dev/null +++ b/com.minres.scviewer.database.binary/OSGI-INF/component.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/com.minres.scviewer.database.binary/bin/com/minres/scviewer/database/binary/BinaryDbLoader.class b/com.minres.scviewer.database.binary/bin/com/minres/scviewer/database/binary/BinaryDbLoader.class new file mode 100644 index 0000000000000000000000000000000000000000..e3334ca60533e9e5b82e499d0a66a8800501805a GIT binary patch literal 1603 zcmbVMZBG+H5PtUBaM;T}L+R`EvHO*ajcV?b>W}cn<`Rm&c0E<{MVK6L|{hC#iULZm%EH|WhF9NH= zBku4}SdR2~aA>XRzYWLsc|`;!k_^LpyumG(dsS=8*%Rf+L?6RkPqb&Rc|+{_L9Kh>xAQ&E>FfZFZleWN1hx?+qLRdz{ zVJP$t>R?I{eaq65(F#K%m)~JXuKN{{K>{OLT)?1-F@~{Y%Bw-Z4;AkWMlq5G!$cM) z`Wc37>4}&1nj?Y|cU-Dv)b`8V-Qj^$`{rRXdM87M#oiQ8m4?V>sv>&94@$D8@N@aN zTUsdF_o~GVZeYs9O@_f^36&*_Y20Ek8{DmntzD`q_xz7&h5^D~bzLPTk!&aERLgB; zZ6BVaQM=vCv%QOMJ8m|F7m=JwP&14I!E3~3qPv}>c(bK@|8{5EY5t2((xowBDCYjM zmJO#E)04jSRJx*=e@ilM9+btto(dBWS{F>q*tXDB+$DcfvOAu q_{u}IQI%+54sp5jcu2drf(4Cgk%w+W;WNfhwqfbiHayahi@yPN5{u#h literal 0 HcmV?d00001 diff --git a/com.minres.scviewer.database.binary/build.properties b/com.minres.scviewer.database.binary/build.properties new file mode 100644 index 0000000..c58ea21 --- /dev/null +++ b/com.minres.scviewer.database.binary/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + OSGI-INF/ diff --git a/com.minres.scviewer.database.binary/src/com/minres/scviewer/database/binary/BinaryDbLoader.java b/com.minres.scviewer.database.binary/src/com/minres/scviewer/database/binary/BinaryDbLoader.java new file mode 100644 index 0000000..151863c --- /dev/null +++ b/com.minres.scviewer.database.binary/src/com/minres/scviewer/database/binary/BinaryDbLoader.java @@ -0,0 +1,56 @@ +/******************************************************************************* + * Copyright (c) 2015 MINRES Technologies GmbH and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * MINRES Technologies GmbH - initial API and implementation + *******************************************************************************/ +package com.minres.scviewer.database.binary; + +import java.io.File; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; + +import com.minres.scviewer.database.IWaveform; +import com.minres.scviewer.database.IWaveformDb; +import com.minres.scviewer.database.IWaveformDbLoader; +import com.minres.scviewer.database.IWaveformEvent; +import com.minres.scviewer.database.RelationType; + +public class BinaryDbLoader implements IWaveformDbLoader { + + + private List usedRelationsList = new ArrayList<>(); + + private IWaveformDb db; + + + public BinaryDbLoader() { + } + + @Override + public Long getMaxTime() { + return 0L; + } + + @Override + public List> getAllWaves() { + List> streams=new ArrayList>(); + return streams; + } + + @Override + public boolean load(IWaveformDb db, File file) throws Exception { + return false; + } + + @Override + public Collection getAllRelationTypes(){ + return usedRelationsList; + } + +}