blob: d2b5a00a671308b04b2cee190b40ab2b6f16d66c [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2009-2010 Texas Center for Applied Technology
* Texas Engineering Experiment Station
* The Texas A&M University System
* All Rights Reserved.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Austin Riddle (Texas Center for Applied Technology) -
* initial demo implementation
*
*****************************************************************************/
package org.eclipse.rap.gef.demo;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
/**
* Configures the initial size and appearance of a workbench window.
*/
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
super(configurer);
}
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setShowMenuBar(false);
configurer.setShowPerspectiveBar(false);
configurer.setShowCoolBar(false);
configurer.setShowStatusLine(false);
configurer.setTitle("RAP GEF Demo");
}
public void postWindowCreate() {
IWorkbenchWindow window = getWindowConfigurer().getWindow();
Shell shell = window.getShell();
shell.setMaximized(true);
}
}