Skip to content

Package: ApplicationWorkbenchWindowAdvisor

ApplicationWorkbenchWindowAdvisor

nameinstructionbranchcomplexitylinemethod
ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
preWindowOpen()
M: 20 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 6 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: * EclipseSource Munich - initial API and implementation
13: */
14: package org.eclipse.emf.ecp.makeithappen.application.sample.e3;
15:
16: import org.eclipse.swt.graphics.Point;
17: import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
18: import org.eclipse.ui.application.WorkbenchWindowAdvisor;
19:
20: /**
21: * The ApplicationWorkbenchWindowAdvisor which sets default window sizes.
22: */
23: public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
24:
25:         /**
26:          * Default constructor.
27:          *
28:          * @param configurer the {@link IWorkbenchWindowConfigurer}.
29:          */
30:         public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
31:                 super(configurer);
32:         }
33:
34:         @Override
35:         public void preWindowOpen() {
36:                 final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
37:                 configurer.setInitialSize(new Point(800, 500));
38:                 configurer.setShowCoolBar(false);
39:                 configurer.setShowStatusLine(false);
40:                 configurer.setTitle("MakeItHappen ECP Sample e3 Application"); //$NON-NLS-1$
41:         }
42: }