diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/ExportFormat.java b/wise-webapp/src/main/java/com/wisemapping/exporter/ExportFormat.java index 90540bfd..89d63571 100644 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/ExportFormat.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/ExportFormat.java @@ -30,7 +30,7 @@ public enum ExportFormat { MICROSOFT_EXCEL("application/vnd.ms-excel", "xls"), MICROSOFT_WORD("application/msword", "doc"), OPEN_OFFICE_WRITER("application/vnd.oasis.opendocument.text", "odt"), - MIND_MANAGER("application/vnd.mindjet.mindmanager", "mmap"), + MINDJET("application/vnd.mindjet.mindmanager", "mmap"), WISEMAPPING("application/wisemapping+xml", "wxml"); diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java b/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java index b573e253..f019051c 100644 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/ExporterFactory.java @@ -145,7 +145,7 @@ public class ExporterFactory { exporter.export(xml.getBytes(UTF_8_CHARSET_NAME), output); break; } - case MIND_MANAGER: { + case MINDJET: { final Exporter exporter = XSLTExporter.create(XSLTExporter.Type.MINDJET); exporter.export(xml.getBytes(UTF_8_CHARSET_NAME), output); break; diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/view/TransformView.java b/wise-webapp/src/main/java/com/wisemapping/rest/view/TransformView.java index 787443d7..26becdee 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/view/TransformView.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/view/TransformView.java @@ -86,7 +86,7 @@ public class TransformView extends AbstractView { final Object mindmap = viewMap.get("mindmap"); final StreamResult result = new StreamResult(outputStream); jaxbMarshaller.marshal(mindmap, result); - } else if (exportFormat == ExportFormat.MICROSOFT_EXCEL || exportFormat == ExportFormat.TEXT || exportFormat == ExportFormat.OPEN_OFFICE_WRITER || exportFormat == ExportFormat.MIND_MANAGER) { + } else if (exportFormat == ExportFormat.MICROSOFT_EXCEL || exportFormat == ExportFormat.TEXT || exportFormat == ExportFormat.OPEN_OFFICE_WRITER || exportFormat == ExportFormat.MINDJET) { response.setCharacterEncoding("UTF-8"); factory.export(properties, content, outputStream, null); } else { diff --git a/wise-webapp/src/test/java/com/wisemapping/test/export/ExportXsltBasedTest.java b/wise-webapp/src/test/java/com/wisemapping/test/export/ExportXsltBasedTest.java index 55e1f561..cff393dd 100644 --- a/wise-webapp/src/test/java/com/wisemapping/test/export/ExportXsltBasedTest.java +++ b/wise-webapp/src/test/java/com/wisemapping/test/export/ExportXsltBasedTest.java @@ -74,7 +74,7 @@ public class ExportXsltBasedTest { result[pos++] = new Object[]{XSLTExporter.Type.LATEX, freeMindFile, new File(DATA_DIR_PATH, fileName + ".latex")}; result[pos++] = new Object[]{XSLTExporter.Type.MICROSOFT_EXCEL, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MICROSOFT_EXCEL.getFileExtension())}; result[pos++] = new Object[]{XSLTExporter.Type.OPEN_OFFICE, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.OPEN_OFFICE_WRITER.getFileExtension())}; - result[pos++] = new Object[]{XSLTExporter.Type.MINDJET, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MIND_MANAGER.getFileExtension())}; + result[pos++] = new Object[]{XSLTExporter.Type.MINDJET, freeMindFile, new File(DATA_DIR_PATH, fileName + "." + ExportFormat.MINDJET.getFileExtension())}; } diff --git a/wise-webapp/src/test/resources/data/export/welcome.mmap b/wise-webapp/src/test/resources/data/export/welcome.xmmap similarity index 100% rename from wise-webapp/src/test/resources/data/export/welcome.mmap rename to wise-webapp/src/test/resources/data/export/welcome.xmmap