Class ApplicationAccessHelper
java.lang.Object
com.e1c.g5.v8.dt.internal.cli.api.ApplicationAccessHelper
Utility class that accesses the IApplication of the application
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.equinox.app.IApplication
Gets anIApplication
defined for the current product (if any)static boolean
shutdown
(int status) Attempts to shutdown the currently running 1C:EDT application as gracefully as possible.
-
Method Details
-
shutdown
public static boolean shutdown(int status) Attempts to shutdown the currently running 1C:EDT application as gracefully as possible. If successful, this method does not return.- Parameters:
status
- exit status.- Returns:
false
in shutdown has already been started.
-
getApplication
public static org.eclipse.equinox.app.IApplication getApplication() throws org.eclipse.core.runtime.CoreExceptionGets anIApplication
defined for the current product (if any)- Returns:
IApplication
instance, if registered.null
otherwise- Throws:
org.eclipse.core.runtime.CoreException
-