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.IApplicationGets anIApplicationdefined for the current product (if any)static booleanshutdown(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:
falsein shutdown has already been started.
-
getApplication
public static org.eclipse.equinox.app.IApplication getApplication() throws org.eclipse.core.runtime.CoreExceptionGets anIApplicationdefined for the current product (if any)- Returns:
IApplicationinstance, if registered.nullotherwise- Throws:
org.eclipse.core.runtime.CoreException
-