JetBrains / MPS-extensions

MPS-extensions aims to ease language development within MPS.
https://jetbrains.github.io/MPS-extensions/
Apache License 2.0
80 stars 49 forks source link

com.mbeddr.mpsutil.projectview: register custom project views through the AbstractProjectViewPane extension point #707

Closed alexanderpann closed 6 months ago

alexanderpann commented 8 months ago

This is especially necessary when you want to set a custom view as the default view. Workaround: view the generated code for the custom view and search for the view ID. Add the following code to an application plugin:

Project ideaProject = ProjectHelper.toIdeaProject(project)
AbstractProjectViewPane.EP.getPoint(ideaProject).registerExtension(ProejctViewManager.getInstance().getView(project),new ViewID(yourViewID)));