/** * Sets the version. * * @param name the new version */ public void setVersion(String name) { if (editor.isLocalProcessingDescriptor()) editor.getAeDescription().getMetaData().setVersion(name); else if (editor.isTypeSystemDescriptor()) editor.getTypeSystemDescription().setVersion(name); else if (editor.isTypePriorityDescriptor()) editor.getTypePriorities().setVersion(name); else if (editor.isFsIndexCollection()) editor.getFsIndexCollection().setVersion(name); else if (editor.isExtResAndBindingsDescriptor()) editor.getExtResAndBindings().setVersion(name); else throw new InternalErrorCDE("invalid state"); }