/** * Gets the version. * * @return the version */ public String getVersion() { if (editor.isLocalProcessingDescriptor()) return editor.getAeDescription().getMetaData().getVersion(); if (editor.isTypeSystemDescriptor()) return editor.getTypeSystemDescription().getVersion(); if (editor.isTypePriorityDescriptor()) return editor.getTypePriorities().getVersion(); if (editor.isFsIndexCollection()) return editor.getFsIndexCollection().getVersion(); if (editor.isExtResAndBindingsDescriptor()) return editor.getExtResAndBindings().getVersion(); throw new InternalErrorCDE("invalid state"); }