Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.1 kB
1
Indexable
Never
import { BaseModelContainer } from 'nemo-document-lib/lib/core/model-container/base/base-model-container';
import { ExporterManager } from 'nemo-document-lib/lib/nemo-document-service/exporters/exporter-manager';
import { BaseChangeEventType } from '../base/base-change-event-type';
import { FileNameTable } from '../../constants/file-name-table';
import { XmlExporter } from '../../nemo-document-service/exporters/xml-exporter';
import { TagTable } from '../../constants/tag-table';
import { XmlNode } from 'nemo-document-lib/lib/models/xml-node';





export class ApplyPeriChangeEvent extends BaseChangeEventType {
    constructor() {
        super();
    }

    do(exporterManager: ExporterManager, modelContainer: BaseModelContainer) {
        const root = (<XmlExporter>exporterManager.getExporter(FileNameTable.MAIN_XML))
            .getRootAndMarkAsChanged();

        // root.at(TagTable.objects)
        // .addChild(new XmlNode('Ejemplo'));

    }
    undo(exporterManager: ExporterManager, modelContainer: BaseModelContainer) {

    }
    shortDescription(): string {
        return '';
    }

}