blob: 1e465728b10faee993eb3be5ee0b341ba0fd1bf7 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Eugen Neufeld - initial API and implementation
*
*******************************************************************************/
package org.eclipse.emf.ecp.rap;
import org.eclipse.rap.rwt.application.EntryPoint;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.application.WorkbenchAdvisor;
/**
* This class controls all aspects of the application's execution
* and is contributed through the plugin.xml.
*/
public class Application implements EntryPoint {
// public Object start(IApplicationContext context) throws Exception {
// Display display = PlatformUI.createDisplay();
// WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
// return PlatformUI.createAndRunWorkbench(display, advisor);
// }
//
// public void stop() {
// // Do nothing
// }
@Override
public int createUI() {
final Display display = PlatformUI.createDisplay();
final WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
return PlatformUI.createAndRunWorkbench(display, advisor);
}
}