]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph/tests/org/simantics/graph/tests/refactoring/TestRefactoring.java
Enhancements to modelled STS-tests
[simantics/platform.git] / bundles / org.simantics.graph / tests / org / simantics / graph / tests / refactoring / TestRefactoring.java
index 53dd2df9944608c3766a7bc99518d7331c8d8c4e..f7c7cb172b60b695ddc8c3ac523b867a36cc2173 100644 (file)
@@ -1,29 +1,29 @@
-package org.simantics.graph.tests.refactoring;\r
-\r
-import java.io.File;\r
-import java.net.URLDecoder;\r
-\r
-import org.simantics.graph.refactoring.PrintReferencesTool;\r
-import org.simantics.graph.refactoring.RefactoringTool;\r
-\r
-public class TestRefactoring {\r
-\r
-    public static void main(String[] args) throws Exception {\r
-        File dir = new File(URLDecoder.decode(TestRefactoring.class.getResource(".").getPath(), "UTF-8")).getAbsoluteFile();// new File(TestRefactoring.class.getResource(".").getFile());\r
-        System.out.println(dir);\r
-        File input = new File(dir, "xor5.aprosSymbol");\r
-        File mappingSpec = new File(dir, "mappingSpec.txt");\r
-        File output = new File(dir, "xor5_refactored.aprosSymbol");\r
-        \r
-        System.out.println("-- Before refactoring");\r
-        System.out.println("------------------------------------------");\r
-        PrintReferencesTool.print(input);\r
-        \r
-        RefactoringTool.refactor(mappingSpec, input, output);\r
-        \r
-        System.out.println("-- After refactoring");\r
-        System.out.println("------------------------------------------");\r
-        PrintReferencesTool.print(output);\r
-    }\r
-    \r
-}\r
+package org.simantics.graph.tests.refactoring;
+
+import java.io.File;
+import java.net.URLDecoder;
+
+import org.simantics.graph.refactoring.PrintReferencesTool;
+import org.simantics.graph.refactoring.RefactoringTool;
+
+public class TestRefactoring {
+
+    public static void main(String[] args) throws Exception {
+        File dir = new File(URLDecoder.decode(TestRefactoring.class.getResource(".").getPath(), "UTF-8")).getAbsoluteFile();// new File(TestRefactoring.class.getResource(".").getFile());
+        System.out.println(dir);
+        File input = new File(dir, "xor5.aprosSymbol");
+        File mappingSpec = new File(dir, "mappingSpec.txt");
+        File output = new File(dir, "xor5_refactored.aprosSymbol");
+        
+        System.out.println("-- Before refactoring");
+        System.out.println("------------------------------------------");
+        PrintReferencesTool.print(input);
+        
+        RefactoringTool.refactor(mappingSpec, input, output);
+        
+        System.out.println("-- After refactoring");
+        System.out.println("------------------------------------------");
+        PrintReferencesTool.print(output);
+    }
+    
+}