]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/monitor/MonitorVariableValueRequest.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagram / monitor / MonitorVariableValueRequest.java
index 19698ab02a504faa00d69c5b4718fc295af64ead..3a4635958a70a9427e1ea458e54646052075f95c 100644 (file)
@@ -1,38 +1,38 @@
-/*******************************************************************************\r
- * Copyright (c) 2012 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.modeling.ui.diagram.monitor;\r
-\r
-import org.simantics.db.ReadGraph;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.common.request.BinaryRead;\r
-import org.simantics.db.exception.DatabaseException;\r
-\r
-/**\r
- * @author Tuukka Lehtonen\r
- */\r
-public class MonitorVariableValueRequest extends BinaryRead<Resource, Resource, MonitorVariableValue> {\r
-\r
-    public MonitorVariableValueRequest(Resource runtimeDiagram, Resource monitorElement) {\r
-        super(runtimeDiagram, monitorElement);\r
-    }\r
-\r
-    @Override\r
-    public MonitorVariableValue perform(ReadGraph graph) throws DatabaseException {\r
-        MonitorVariable monitorVariable = graph.syncRequest(new ResolveMonitorVariable(parameter, parameter2));\r
-        if (monitorVariable == null)\r
-            return null;\r
-        String value = graph.syncRequest(new MonitorValue(monitorVariable.getExpression(), monitorVariable.getFormat(),\r
-                monitorVariable.getVariable()));\r
-        return new MonitorVariableValue(monitorVariable, value);\r
-    }\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2012 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * 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:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.modeling.ui.diagram.monitor;
+
+import org.simantics.db.ReadGraph;
+import org.simantics.db.Resource;
+import org.simantics.db.common.request.BinaryRead;
+import org.simantics.db.exception.DatabaseException;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class MonitorVariableValueRequest extends BinaryRead<Resource, Resource, MonitorVariableValue> {
+
+    public MonitorVariableValueRequest(Resource runtimeDiagram, Resource monitorElement) {
+        super(runtimeDiagram, monitorElement);
+    }
+
+    @Override
+    public MonitorVariableValue perform(ReadGraph graph) throws DatabaseException {
+        MonitorVariable monitorVariable = graph.syncRequest(new ResolveMonitorVariable(parameter, parameter2));
+        if (monitorVariable == null)
+            return null;
+        String value = graph.syncRequest(new MonitorValue(monitorVariable.getExpression(), monitorVariable.getFormat(),
+                monitorVariable.getVariable()));
+        return new MonitorVariableValue(monitorVariable, value);
+    }
+
 }
\ No newline at end of file