Repository navigation
feat(explorer): mehrere Modelle auf einmal zum Workspace hinzufügen - #185
Merged
Merged
Conversation
Im Datei-Tree lassen sich mehrere Zeilen markieren (Strg/Cmd-Klick, Shift-Klick fuer einen Bereich). "Add N Models to Workspace" fuegt alle markierten .ecore hinzu, "Add all Models in Folder" auf einem Ordner alle darunter. Alle Modelle werden zuerst geladen, dann gemeinsam eingetragen; der Workspace wird einmal gespeichert und fehlgeschlagene Instanzen einmal neu geladen. Schon geladene Modelle werden uebersprungen, Fehler erscheinen im Problems-Panel statt nur auf der Konsole. Refs #184
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #184
Was
Im Datei-Tree lassen sich mehrere Modelle auf einmal zum Workspace hinzufügen.
.ecore: „Add N Models to Workspace“ für alle markierten Modelle..wspwird einmal gespeichert.Die Reihenfolge der Auswahl spielt keine Rolle: Die Model-Registry löst Querverweise zwischen Paketen nach jedem Laden neu auf.
Wie
ui-file-explorer/src/selection.ts: Hilfsfunktionen ohne Seiteneffekte, nämlich sichtbare Zeilen, Shift-Bereich, markierte bzw. darunterliegende.ecore.gene-app/src/services/addModels.ts: der Ablauf, ebenfalls ohne Seiteneffekte; Laden, Eintragen und Speichern übergibt die App.WorkspaceActionService.loadModels(optional),App.vuehandleModelsAdd.loadModelläuft jetzt über denselben Weg.Nicht enthalten
Mehrfach-Hinzufügen für Instanzen und C-OCL.
Geprüft
vitest: 598 grün, davon 9 neu.vue-tsc: keine neuen Fehler.uni-Workspace und einem Ordner mitlibrary.ecoreund einer kaputtenbroken.ecore:library.ecorewird geladen, dieuni.wspeinmal geschrieben.broken.ecoreerscheint im Problems-Panel.