* This class controls all aspects of the application's execution
*
* @author n.hoffmann
- * @version $Id: $
*/
public class Application implements IApplication {
- /* (non-Javadoc)
- * @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
- */
- /** {@inheritDoc} */
- public Object start(IApplicationContext context) {
+ @Override
+ public Object start(IApplicationContext context) {
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display, new ApplicationWorkbenchAdvisor());
}
}
- /* (non-Javadoc)
- * @see org.eclipse.equinox.app.IApplication#stop()
- */
- /**
- * <p>stop</p>
- */
- public void stop() {
+ @Override
+ public void stop() {
final IWorkbench workbench = PlatformUI.getWorkbench();
- if (workbench == null)
- return;
+ if (workbench == null) {
+ return;
+ }
final Display display = workbench.getDisplay();
display.syncExec(new Runnable() {
- public void run() {
- if (!display.isDisposed())
- workbench.close();
+ @Override
+ public void run() {
+ if (!display.isDisposed()) {
+ workbench.close();
+ }
}
});
}