blob: 14dd0ead82b704f75bca3a347a4623e5c33a8561 [file] [log] [blame]
/*
* Copyright (c) 2007 Borland Software Corporation
*
* 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:
* Dmitry Stadnik (Borland) - initial API and implementation
*/
package org.eclipse.gmf.examples.taipan.port.diagram.application;
import org.eclipse.ui.application.IWorkbenchConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
/**
* @generated
*/
public class DiagramEditorWorkbenchAdvisor extends WorkbenchAdvisor {
/**
* @generated
*/
public static final String PERSPECTIVE_ID = "org.eclipse.gmf.examples.taipan.port.diagram.PortPerspective"; //$NON-NLS-1$
/**
* @generated
*/
public String getInitialWindowPerspectiveId() {
return PERSPECTIVE_ID;
}
/**
* @generated
*/
public void initialize(IWorkbenchConfigurer configurer) {
super.initialize(configurer);
configurer.setSaveAndRestore(true);
}
/**
* @generated
*/
public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
return new DiagramEditorWorkbenchWindowAdvisor(configurer);
}
}