Switch to unified view

a/src/net/timbusproject/context/converter/OWLExportCLI.java b/src/net/timbusproject/context/converter/OWLExportCLI.java
...
...
69
69
70
        // Ascertain if this is an archive file
70
        // Ascertain if this is an archive file
71
        boolean useArchiveFormat = IArchiveManager.FACTORY.isArchiveFile(file);
71
        boolean useArchiveFormat = IArchiveManager.FACTORY.isArchiveFile(file);
72
72
73
        // Create the Resource
73
        // Create the Resource
74
        Resource resource = resourceSet.createResource(useArchiveFormat ? IArchiveManager.FACTORY
74
        Resource resource = resourceSet.createResource(useArchiveFormat ? IArchiveManager.FACTORY.createArchiveModelURI(file) : URI
75
                .createArchiveModelURI(file) : URI.createFileURI(file.getAbsolutePath()));
75
                .createFileURI(file.getAbsolutePath()));
76
76
77
        // Load the model file
77
        // Load the model file
78
        try {
78
        try {
79
            resource.load(null);
79
            resource.load(null);
80
        } catch (IOException ex) {
80
        } catch (IOException ex) {
...
...
82
            try {
82
            try {
83
                ModelCompatibility.checkErrors(resource);
83
                ModelCompatibility.checkErrors(resource);
84
            }
84
            }
85
            // Incompatible, don't load it
85
            // Incompatible, don't load it
86
            catch (IncompatibleModelException ex1) {
86
            catch (IncompatibleModelException ex1) {
87
                System.err.println("Messages.EditorModelManager_2" + ": "
87
                System.err.println("Messages.EditorModelManager_2" + ": " + NLS.bind("Messages.EditorModelManager_3", file) + "\n"
88
                        + NLS.bind("Messages.EditorModelManager_3", file) + "\n" + ex1.getMessage());
88
                        + ex1.getMessage());
89
                return null;
89
                return null;
90
            }
90
            }
91
        }
91
        }
92
92
93
        // Changed: skip "Once loaded - Check version number compatibility with user"
93
        // Changed: skip "Once loaded - Check version number compatibility with user"