| /*=============================================================================# |
| # Copyright (c) 2009, 2020 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================*/ |
| |
| package org.eclipse.statet.internal.rj.example.rcpdemo; |
| |
| import org.eclipse.swt.graphics.Point; |
| import org.eclipse.ui.application.ActionBarAdvisor; |
| import org.eclipse.ui.application.IActionBarConfigurer; |
| import org.eclipse.ui.application.IWorkbenchWindowConfigurer; |
| import org.eclipse.ui.application.WorkbenchWindowAdvisor; |
| |
| |
| public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { |
| |
| |
| public ApplicationWorkbenchWindowAdvisor(final IWorkbenchWindowConfigurer configurer) { |
| super(configurer); |
| } |
| |
| |
| @Override |
| public ActionBarAdvisor createActionBarAdvisor(final IActionBarConfigurer configurer) { |
| return new ApplicationActionBarAdvisor(configurer); |
| } |
| |
| @Override |
| public void preWindowOpen() { |
| final IWorkbenchWindowConfigurer configurer= getWindowConfigurer(); |
| configurer.setInitialSize(new Point(760, 600)); |
| configurer.setShowCoolBar(false); |
| configurer.setShowStatusLine(true); |
| configurer.setShowProgressIndicator(true); |
| } |
| |
| } |