]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet.ui/src/org/simantics/spreadsheet/ui/SheetWriter.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.spreadsheet.ui / src / org / simantics / spreadsheet / ui / SheetWriter.java
index 99e33385b8e16105cfc96e83571dff17f904cb7a..827ed901ce7199de76358b9bd06850a8a38088bf 100644 (file)
@@ -1,49 +1,49 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in 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.spreadsheet.ui;\r
-\r
-import org.simantics.databoard.Bindings;\r
-import org.simantics.db.Resource;\r
-import org.simantics.db.WriteGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.diagram.synchronization.graph.ElementWriter;\r
-import org.simantics.g2d.element.IElement;\r
-import org.simantics.spreadsheet.resource.SpreadsheetResource;\r
-\r
-public class SheetWriter implements ElementWriter {\r
-\r
-    public static final Object LABEL = new Object();\r
-\r
-    @Override\r
-    public void addToGraph(WriteGraph g, IElement element, Resource elementResource) throws DatabaseException {\r
-\r
-        final Resource sheetComponent = element.getHint(SheetClass.KEY_SHEET);\r
-        final String rvi = element.getHint(SheetClass.KEY_RVI);\r
-\r
-        if (sheetComponent == null)\r
-            throw new IllegalArgumentException("KEY_SHEET hint not set");\r
-\r
-        if (rvi == null)\r
-            throw new IllegalArgumentException("KEY_RVI hint not set");\r
-\r
-        SpreadsheetResource sr = SpreadsheetResource.getInstance(g);\r
-\r
-        g.claim(elementResource, sr.HasSheet, sheetComponent);\r
-        g.claimLiteral(elementResource, sr.HasRVI, rvi, Bindings.STRING);\r
-\r
-    }\r
-\r
-    @Override\r
-    public void removeFromGraph(WriteGraph graph, Resource elementResource) throws DatabaseException {\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 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.spreadsheet.ui;
+
+import org.simantics.databoard.Bindings;
+import org.simantics.db.Resource;
+import org.simantics.db.WriteGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.diagram.synchronization.graph.ElementWriter;
+import org.simantics.g2d.element.IElement;
+import org.simantics.spreadsheet.resource.SpreadsheetResource;
+
+public class SheetWriter implements ElementWriter {
+
+    public static final Object LABEL = new Object();
+
+    @Override
+    public void addToGraph(WriteGraph g, IElement element, Resource elementResource) throws DatabaseException {
+
+        final Resource sheetComponent = element.getHint(SheetClass.KEY_SHEET);
+        final String rvi = element.getHint(SheetClass.KEY_RVI);
+
+        if (sheetComponent == null)
+            throw new IllegalArgumentException("KEY_SHEET hint not set");
+
+        if (rvi == null)
+            throw new IllegalArgumentException("KEY_RVI hint not set");
+
+        SpreadsheetResource sr = SpreadsheetResource.getInstance(g);
+
+        g.claim(elementResource, sr.HasSheet, sheetComponent);
+        g.claimLiteral(elementResource, sr.HasRVI, rvi, Bindings.STRING);
+
+    }
+
+    @Override
+    public void removeFromGraph(WriteGraph graph, Resource elementResource) throws DatabaseException {
+    }
+
+}