What is the Action class of "Run context configuration" and "Debug context configuration"

I hope invoke "Run context configuration" and "Debug context configuration" in java code

5 comments
Comment actions Permalink

What about "Debug context ocnfiguration", I doesn't find DebugContextAction

0
Comment actions Permalink

I can't find it either.

Here is something which may be relevant:

https://github.com/JetBrains/intellij-community/blob/210e0ed138627926e10094bb9c76026319cec178/platform/script-debugger/debugger-ui/src/org/jetbrains/debugger/RemoteDebugConfiguration.java


I am just searching in intellij-community. Never needed context configuration yet.

Maybe others know.. ?:|

0
Comment actions Permalink

I found the solution, use following code to get configurationSettings

AnActionEvent e;

void actionPerformed(AnActionEvent e) {
    this.e = e
}

ConfigurationContext ctx = ConfigurationContext.getFromContext(e.dataContext)
List<ConfigurationFromContext> confs = PreferredProducerFind.getConfigurationsFromContext(ctx.location, ctx, false)
RunnerAndConfigurationSettings confs2 = confs[0].configurationSettings
confs2
0
Comment actions Permalink

well done!

Thank you for sharing it.

0

Please sign in to leave a comment.