Fixed Eclipse importer and its dependencies

nmatra nmatra 2014-06-24

<< < 1 2 3 (Page 3 of 3)
copied platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.emf -> platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/DatetimeMeasurement.java
platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.emf to platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/DatetimeMeasurement.java
--- a/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.emf
+++ b/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/DatetimeMeasurement.java
@@ -1,9 +1,35 @@
-package org.ossmeter.metricprovider.rascal.historic.model;
+package org.ossmeter.metricprovider.rascal.trans.model;
 
-import "platform:/resource/org.ossmeter.platform-extensions.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.ecore";
+import com.googlecode.pongo.runtime.querying.NumericalQueryProducer;
+import com.googlecode.pongo.runtime.querying.StringQueryProducer;
 
-@db(qualifiedCollectionNames="true")
-@customize
-class RascalHistoricMetrics {
-    val org.ossmeter.metricprovider.rascal.trans.model.Measurement[*] measurements;
-}
+
+public class DatetimeMeasurement extends Measurement {
+	
+	
+	
+	public DatetimeMeasurement() { 
+		super();
+		super.setSuperTypes("org.ossmeter.metricprovider.rascal.trans.model.Measurement");
+		URI.setOwningType("org.ossmeter.metricprovider.rascal.trans.model.DatetimeMeasurement");
+		VALUE.setOwningType("org.ossmeter.metricprovider.rascal.trans.model.DatetimeMeasurement");
+	}
+	
+	public static StringQueryProducer URI = new StringQueryProducer("uri"); 
+	public static NumericalQueryProducer VALUE = new NumericalQueryProducer("value");
+	
+	
+	public long getValue() {
+		return parseLong(dbObject.get("value")+"", 0);
+	}
+	
+	public DatetimeMeasurement setValue(long value) {
+		dbObject.put("value", value);
+		notifyChanged();
+		return this;
+	}
+	
+	
+	
+	
+}
<< < 1 2 3 (Page 3 of 3)