-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mps-sync-plugin-lib): do not synchronize read-only modules and m…
…odels
- Loading branch information
Showing
17 changed files
with
605 additions
and
79 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
...sync-plugin-lib/src/main/kotlin/org/modelix/mps/sync/modelix/ModelixSyncPluginConcepts.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package org.modelix.mps.sync.modelix | ||
|
||
import org.modelix.model.api.BuiltinLanguages | ||
import org.modelix.model.api.BuiltinLanguages.MPSRepositoryConcepts.Module | ||
import org.modelix.model.api.SimpleChildLink | ||
import org.modelix.model.api.SimpleConcept | ||
import org.modelix.model.api.SimpleLanguage | ||
import org.modelix.model.api.SimpleReferenceLink | ||
|
||
object ModelixSyncPluginConcepts : | ||
SimpleLanguage("org.modelix.model.syncpluginconcepts", uid = "mps:0a7577d1-d4e5-431d-98b1-fae38f9aee81") { | ||
|
||
override var includedConcepts = | ||
arrayOf(ReadonlyModel, ReadonlyModule, ReadonlyModuleDependency, ReadonlyModelReference) | ||
|
||
object ReadonlyModel : SimpleConcept( | ||
conceptName = "ReadonlyModel", | ||
uid = "mps:0a7577d1-d4e5-431d-98b1-fae38f9aee81/474657388638618893", | ||
directSuperConcepts = listOf(BuiltinLanguages.MPSRepositoryConcepts.Model), | ||
) { | ||
init { | ||
addConcept(this) | ||
} | ||
} | ||
|
||
object ReadonlyModule : SimpleConcept( | ||
conceptName = "ReadonlyModule", | ||
uid = "mps:0a7577d1-d4e5-431d-98b1-fae38f9aee81/474657388638618896", | ||
directSuperConcepts = listOf(Module), | ||
) { | ||
init { | ||
addConcept(this) | ||
} | ||
|
||
val readonlyModels = SimpleChildLink( | ||
simpleName = "readonlyModels", | ||
isMultiple = true, | ||
isOptional = true, | ||
isOrdered = false, | ||
targetConcept = ReadonlyModel, | ||
uid = "0a7577d1-d4e5-431d-98b1-fae38f9aee81/474657388638618896/474657388638618899", | ||
).also(this::addChildLink) | ||
} | ||
|
||
object ReadonlyModuleDependency : SimpleConcept( | ||
conceptName = "ReadonlyModuleDependency", | ||
uid = "mps:0a7577d1-d4e5-431d-98b1-fae38f9aee81/2206727074858242416", | ||
directSuperConcepts = listOf(BuiltinLanguages.MPSRepositoryConcepts.ModuleDependency), | ||
) { | ||
|
||
init { | ||
addConcept(this) | ||
} | ||
} | ||
|
||
object ReadonlyModelReference : SimpleConcept( | ||
conceptName = "ReadonlyModelReference", | ||
uid = "mps:0a7577d1-d4e5-431d-98b1-fae38f9aee81/6402965165736932004", | ||
directSuperConcepts = listOf(BuiltinLanguages.MPSRepositoryConcepts.ModelReference), | ||
) { | ||
init { | ||
addConcept(this) | ||
} | ||
|
||
val readonlyModel = SimpleReferenceLink( | ||
simpleName = "readonlyModel", | ||
isOptional = false, | ||
targetConcept = ReadonlyModel, | ||
uid = "0a7577d1-d4e5-431d-98b1-fae38f9aee81/6402965165736932004/6402965165736932005", | ||
) | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.