|
a/src/net/timbusproject/context/converter/OWLExportCLI.java |
|
b/src/net/timbusproject/context/converter/OWLExportCLI.java |
|
... |
|
... |
57 |
ResourceSet resourceSet = ArchimateResourceFactory.createResourceSet();
|
57 |
ResourceSet resourceSet = ArchimateResourceFactory.createResourceSet();
|
58 |
|
58 |
|
59 |
// Changed from EditorModelManager#loadModel(File): need register the Archimate package, if that's not done yet
|
59 |
// Changed from EditorModelManager#loadModel(File): need register the Archimate package, if that's not done yet
|
60 |
if (!resourceSet.getPackageRegistry().containsKey(IArchimatePackage.eNS_URI)) {
|
60 |
if (!resourceSet.getPackageRegistry().containsKey(IArchimatePackage.eNS_URI)) {
|
61 |
resourceSet.getPackageRegistry().put(IArchimatePackage.eNS_URI, IArchimatePackage.eINSTANCE);
|
61 |
resourceSet.getPackageRegistry().put(IArchimatePackage.eNS_URI, IArchimatePackage.eINSTANCE);
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
// to allow backwards compability, also register the OLD URI
|
|
|
65 |
String OLD_eNS_URI = "http://www.bolton.ac.uk/archimate";
|
|
|
66 |
if (!resourceSet.getPackageRegistry().containsKey(OLD_eNS_URI)) {
|
|
|
67 |
resourceSet.getPackageRegistry().put(OLD_eNS_URI, IArchimatePackage.eINSTANCE);
|
62 |
}
|
68 |
}
|
63 |
|
69 |
|
64 |
// Ascertain if this is an archive file
|
70 |
// Ascertain if this is an archive file
|
65 |
boolean useArchiveFormat = IArchiveManager.FACTORY.isArchiveFile(file);
|
71 |
boolean useArchiveFormat = IArchiveManager.FACTORY.isArchiveFile(file);
|
66 |
|
72 |
|