From 93fbab408380bf8267092d6cb8e8d8cc056390ff Mon Sep 17 00:00:00 2001 From: veronie Date: Sun, 24 May 2020 17:43:28 +0200 Subject: [PATCH] Reverted project to simple java project (no maven). Commented gson code out. --- xyz.veronie.bgg.ui/.project | 6 -- xyz.veronie.bgg.ui/plugin.xml | 12 --- xyz.veronie.bgg.ui/pom.xml | 80 ------------------- .../xyz/veronie/bgg/result/ThingMetaData.java | 8 +- .../xyz/veronie/bgg/result/ThingProvider.java | 8 +- 5 files changed, 8 insertions(+), 106 deletions(-) delete mode 100644 xyz.veronie.bgg.ui/pom.xml diff --git a/xyz.veronie.bgg.ui/.project b/xyz.veronie.bgg.ui/.project index fcc9de6..c10fca4 100644 --- a/xyz.veronie.bgg.ui/.project +++ b/xyz.veronie.bgg.ui/.project @@ -20,14 +20,8 @@ - - org.eclipse.m2e.core.maven2Builder - - - - org.eclipse.m2e.core.maven2Nature org.eclipse.pde.PluginNature org.eclipse.jdt.core.javanature diff --git a/xyz.veronie.bgg.ui/plugin.xml b/xyz.veronie.bgg.ui/plugin.xml index 4a77977..9cf6b9b 100644 --- a/xyz.veronie.bgg.ui/plugin.xml +++ b/xyz.veronie.bgg.ui/plugin.xml @@ -2,18 +2,6 @@ - - - - - - diff --git a/xyz.veronie.bgg.ui/pom.xml b/xyz.veronie.bgg.ui/pom.xml deleted file mode 100644 index 9b8789a..0000000 --- a/xyz.veronie.bgg.ui/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - 4.0.0 - - xyz.veronie.bgg - xyz.veronie.bgg.ui - 0.0.1-SNAPSHOT - - xyz.veronie.bgg.ui - - http://www.example.com - - - UTF-8 - 1.7 - 1.7 - - - - - junit - junit - 4.11 - test - - - com.google.code.gson - gson - 2.8.6 - - - - - - - - - maven-clean-plugin - 3.1.0 - - - - maven-resources-plugin - 3.0.2 - - - maven-compiler-plugin - 3.8.0 - - - maven-surefire-plugin - 2.22.1 - - - maven-jar-plugin - 3.0.2 - - - maven-install-plugin - 2.5.2 - - - maven-deploy-plugin - 2.8.2 - - - - maven-site-plugin - 3.7.1 - - - maven-project-info-reports-plugin - 3.0.0 - - - - - diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingMetaData.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingMetaData.java index dd9fe36..17b3ffc 100644 --- a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingMetaData.java +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingMetaData.java @@ -2,7 +2,7 @@ package xyz.veronie.bgg.result; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; -import com.google.gson.Gson; +//import com.google.gson.Gson; public class ThingMetaData implements java.io.Serializable { private static final long serialVersionUID = -5268898737006538509L; @@ -123,9 +123,9 @@ public class ThingMetaData implements java.io.Serializable { @Override public String toString() { - //return String.valueOf(id); - Gson gson = new Gson(); - return gson.toJson(this); + return String.valueOf(id); +// Gson gson = new Gson(); +// return gson.toJson(this); } diff --git a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingProvider.java b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingProvider.java index 78a71dd..436d79a 100644 --- a/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingProvider.java +++ b/xyz.veronie.bgg.ui/src/xyz/veronie/bgg/result/ThingProvider.java @@ -10,7 +10,7 @@ import xyz.veronie.bgg.result.ThingMetaData; import org.eclipse.core.runtime.Path; -import com.google.gson.Gson; +//import com.google.gson.Gson; public enum ThingProvider { INSTANCE; @@ -71,15 +71,15 @@ public enum ThingProvider { /// create a tag of the current list public void tagResult() { - Gson gson = new Gson(); - String resultList = gson.toJson(this.thingMetas); +// Gson gson = new Gson(); +// String resultList = gson.toJson(this.thingMetas); try { Path filesPath = new Path("result_" + Long.toString(System.currentTimeMillis())); System.out.println("File output path: " + filesPath); BufferedWriter writer = new BufferedWriter( new FileWriter(filesPath.toString())); - writer.write(resultList); +// writer.write(resultList); writer.close(); } catch (IOException e) {