How to invoke ModelChecker from plugin
Hi,
I am trying to force the ModelChecker to be executed before my plugin runs. Is there any way to do this?
Cheers
Yann
I am trying to force the ModelChecker to be executed before my plugin runs. Is there any way to do this?
Cheers
Yann
Please sign in to leave a comment.
Plugin does not "run". It just registers some extensions in MPS. So, correct answer is "no". But, I think, you may need something different. Could you please describe what do you want to make in more details?
Mihail
Like:
How to use the MPS ModelChecker (The one MPS invokes when you Rightclick a Model -> Check Model)?
There's no any "plugin invocation". No event for that. In some cases, plugins even work through their xml-descriptor, without any "main plugin class".
Sure you can do this. Depending on what you want, you can use ModelChecker class (probably surrounding it with ProgressManager.getInstance().runTask()) or ModelCheckerViewer.prepareAndCheckModels() to perform everything automatically.
But I think the question was not about "how to run", but about "how to do it before some-event-like-plugin-startup", and I'm now trying to recognize which event Yann really needs.