I have an Eclipse application that I want to close. The trick is that this is a headless application, so I cannot use the following method:
PlatformUI.getWorkbench().close();
What alternative can I use to close the application?
My main plugin, which defines the product and application, contains the following dependencies:
And this is about it.
I use extension points:
- org.eclipse.core.runtime.applications
To determine my application.
I create a Swing interface for it, and I want to be able to close the application after a certain process or as a result of a user action. I wonder if there is any API in Eclipse for this or in this case I process the user interface myself, I need to close the application, leaving the class that implements IApplication.
source
share