Change mindjet extension.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-29 12:08:40 -03:00
parent 2c355205d0
commit 2a2dc7c57f
5 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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;

View File

@ -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 {

View File

@ -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())};
}