X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frefactoring%2FFixExportedOntology.java;h=90738f70d1c8243366659ff2901ce315247eafc9;hb=2bc508bb935f99de104bd25935f23c474de7f1ca;hp=91d85ecf9732f9c5395b1094c2731a0d468e7d4c;hpb=fa806341cc06b72051d5e8d709674eb9d5c2bf00;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/refactoring/FixExportedOntology.java b/bundles/org.simantics.graph/src/org/simantics/graph/refactoring/FixExportedOntology.java
index 91d85ecf9..90738f70d 100644
--- a/bundles/org.simantics.graph/src/org/simantics/graph/refactoring/FixExportedOntology.java
+++ b/bundles/org.simantics.graph/src/org/simantics/graph/refactoring/FixExportedOntology.java
@@ -50,12 +50,12 @@ public class FixExportedOntology {
convertExportedSharedOntologyIntoBundleOntology(input, output);
}
- public static void createPGraph(Path input) throws Exception {
+ public static void createTGAndPGraph(Path input) throws Exception {
Path output1 = input.getParent().resolve("graph.tg");
TransferableGraph1 tg = convertExportedSharedOntologyIntoBundleOntology(input, output1);
String listing = PrettyPrintTG.print(tg, false);
String newName = input.getFileName().toString();
- if (newName.contains("\\."))
+ if (newName.contains("."))
newName = newName.split("\\.")[0];
Path output2 = input.getParent().resolve(newName + ".pgraph");
Files.write(output2, listing.getBytes(),StandardOpenOption.CREATE);
@@ -66,7 +66,7 @@ public class FixExportedOntology {
System.out.println("Required arguments: [