]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.template2d.ui/src/org/simantics/modeling/template2d/ui/export/DrawingTemplateFormat.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.template2d.ui / src / org / simantics / modeling / template2d / ui / export / DrawingTemplateFormat.java
index 339e3f400e387fa83f8687aac4851b78be4780f6..c7de97c7aa9d2ff1c595f2d23010f25d89d91086 100644 (file)
@@ -1,73 +1,73 @@
-package org.simantics.modeling.template2d.ui.export;\r
-\r
-import java.io.File;\r
-import java.util.Collections;\r
-import java.util.List;\r
-\r
-import org.osgi.service.prefs.Preferences;\r
-import org.simantics.databoard.binding.mutable.Variant;\r
-import org.simantics.databoard.type.RecordType;\r
-import org.simantics.export.core.ExportContext;\r
-import org.simantics.export.core.error.ExportException;\r
-import org.simantics.export.core.intf.FormatClass;\r
-import org.simantics.export.core.manager.Content;\r
-import org.simantics.export.core.manager.TransferableGraphReader;\r
-import org.simantics.export.core.manager.TransferableGraphWriter;\r
-import org.simantics.modeling.template2d.DiagramTemplateConstants;\r
-\r
-public class DrawingTemplateFormat implements FormatClass {\r
-\r
-       @Override\r
-       public Object createFile(ExportContext context, File outputFile, Variant options) throws ExportException {\r
-               return new TransferableGraphWriter(\r
-                               outputFile, \r
-                               DiagramTemplateConstants.DRAWING_TEMPLATE_FORMAT,\r
-                               DiagramTemplateConstants.DRAWING_TEMPLATE_CURRENT_VERSION);\r
-       }\r
-\r
-       @Override\r
-       public Object openFile(ExportContext context, File inputFile, Variant options) throws ExportException {\r
-               return new TransferableGraphReader( inputFile );\r
-       }\r
-\r
-       @Override\r
-       public List<String> validate(ExportContext context, Variant options) throws ExportException {\r
-               return Collections.emptyList();\r
-       }\r
-       \r
-       @Override\r
-       public void closeFile(ExportContext context, Object handle) throws ExportException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-       \r
-       @Override\r
-       public void addAttachment(ExportContext context, Object handle, List<Content> attachments) throws ExportException {\r
-               throw new ExportException( "Cannot add attachments to Transferable Graph file." );\r
-       }\r
-\r
-       @Override\r
-       public RecordType options(ExportContext context) throws ExportException {\r
-               // TODO Auto-generated method stub\r
-               return null;\r
-       }\r
-\r
-       @Override\r
-       public void fillDefaultPrefs( ExportContext ctx, Variant options ) throws ExportException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void savePref(Variant options, Preferences contentScopeNode, Preferences workbenchScopeNode) throws ExportException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-       @Override\r
-       public void loadPref(Variant options, Preferences contentScopeNode, Preferences workbenchScopeNode) throws ExportException {\r
-               // TODO Auto-generated method stub\r
-               \r
-       }\r
-\r
-}\r
+package org.simantics.modeling.template2d.ui.export;
+
+import java.io.File;
+import java.util.Collections;
+import java.util.List;
+
+import org.osgi.service.prefs.Preferences;
+import org.simantics.databoard.binding.mutable.Variant;
+import org.simantics.databoard.type.RecordType;
+import org.simantics.export.core.ExportContext;
+import org.simantics.export.core.error.ExportException;
+import org.simantics.export.core.intf.FormatClass;
+import org.simantics.export.core.manager.Content;
+import org.simantics.export.core.manager.TransferableGraphReader;
+import org.simantics.export.core.manager.TransferableGraphWriter;
+import org.simantics.modeling.template2d.DiagramTemplateConstants;
+
+public class DrawingTemplateFormat implements FormatClass {
+
+       @Override
+       public Object createFile(ExportContext context, File outputFile, Variant options) throws ExportException {
+               return new TransferableGraphWriter(
+                               outputFile, 
+                               DiagramTemplateConstants.DRAWING_TEMPLATE_FORMAT,
+                               DiagramTemplateConstants.DRAWING_TEMPLATE_CURRENT_VERSION);
+       }
+
+       @Override
+       public Object openFile(ExportContext context, File inputFile, Variant options) throws ExportException {
+               return new TransferableGraphReader( inputFile );
+       }
+
+       @Override
+       public List<String> validate(ExportContext context, Variant options) throws ExportException {
+               return Collections.emptyList();
+       }
+       
+       @Override
+       public void closeFile(ExportContext context, Object handle) throws ExportException {
+               // TODO Auto-generated method stub
+               
+       }
+       
+       @Override
+       public void addAttachment(ExportContext context, Object handle, List<Content> attachments) throws ExportException {
+               throw new ExportException( "Cannot add attachments to Transferable Graph file." );
+       }
+
+       @Override
+       public RecordType options(ExportContext context) throws ExportException {
+               // TODO Auto-generated method stub
+               return null;
+       }
+
+       @Override
+       public void fillDefaultPrefs( ExportContext ctx, Variant options ) throws ExportException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void savePref(Variant options, Preferences contentScopeNode, Preferences workbenchScopeNode) throws ExportException {
+               // TODO Auto-generated method stub
+               
+       }
+
+       @Override
+       public void loadPref(Variant options, Preferences contentScopeNode, Preferences workbenchScopeNode) throws ExportException {
+               // TODO Auto-generated method stub
+               
+       }
+
+}