Skip to content

Package: Application

Application

nameinstructionbranchcomplexitylinemethod
Application()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
createUI()
M: 10 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2014 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: *
14: *******************************************************************************/
15: package org.eclipse.emf.ecp.rap;
16:
17: import org.eclipse.rap.rwt.application.EntryPoint;
18: import org.eclipse.swt.widgets.Display;
19: import org.eclipse.ui.PlatformUI;
20: import org.eclipse.ui.application.WorkbenchAdvisor;
21:
22: /**
23: * This class controls all aspects of the application's execution
24: * and is contributed through the plugin.xml.
25: */
26: public class Application implements EntryPoint {
27:
28:         // public Object start(IApplicationContext context) throws Exception {
29:         // Display display = PlatformUI.createDisplay();
30:         // WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
31:         // return PlatformUI.createAndRunWorkbench(display, advisor);
32:         // }
33:         //
34:         // public void stop() {
35:         // // Do nothing
36:         // }
37:
38:         @Override
39:         public int createUI() {
40:                 final Display display = PlatformUI.createDisplay();
41:                 final WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
42:                 return PlatformUI.createAndRunWorkbench(display, advisor);
43:         }
44: }