File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
api/src/main/kotlin/org/modelix/mps/api Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ interface IModelixMpsApi {
2020 fun getRepository (awtComponent : Component ): SRepository
2121
2222 fun getMPSProjects (): List <Project >
23+ fun getMPSProject (): Project = getMPSProjects().first()
2324 fun getVirtualFolder (project : Project , module : SModule ): String?
2425 fun getVirtualFolders (module : SModule ): List <String > = getMPSProjects().mapNotNull {
2526 getVirtualFolder(it, module).takeIf { ! it.isNullOrEmpty() }
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ public final class org/modelix/mps/api/ModelixMpsApi : org/modelix/mps/api/IMode
44 public fun forceSave (Lorg/jetbrains/mps/openapi/model/SModel;)V
55 public fun getGlobalRepository ()Lorg/jetbrains/mps/openapi/module/SRepository;
66 public fun getIdeaProject (Lorg/jetbrains/mps/openapi/project/Project;)Lcom/intellij/openapi/project/Project;
7+ public fun getMPSProject ()Lorg/jetbrains/mps/openapi/project/Project;
78 public fun getMPSProject (Lcom/intellij/openapi/project/Project;)Lorg/jetbrains/mps/openapi/project/Project;
89 public fun getMPSProjects ()Ljava/util/List;
910 public fun getProjectRepository ()Lorg/jetbrains/mps/openapi/module/SRepository;
You can’t perform that action at this time.
0 commit comments