-
Notifications
You must be signed in to change notification settings - Fork 6
Global Objects
Vladimir Schneider edited this page Sep 17, 2015
·
1 revision
Some global objects are initialized by Script Monkey plugin engine while running in different modes. For example, when the script gets executed during IntelliJ Startup or IntelliJ Shutdown, it would have access to the following objects:
-
engine, an instance of
jdk.nashorn.api.scripting.NashornScriptEngine
-
application, an instance of
com.intellij.openapi.application.impl.ApplicationImpl
Tip: Type
application
at the Command Shell prompt and you will seeApplication
as the result.
And, when a script gets executed during Project Open or Project Close event, it has access to the following objects in addition to the objects listed above:
- project, an instance of
com.intellij.openapi.project.impl.ProjectImpl
- plugin, an instance of
com.boxysystems.scriptmonkey.intellij.ScriptMonkeyPlugin
- window, an instance of
com.boxysystems.scriptmonkey.intellij.ui.ScriptShellPanel