| /* |
| * Copyright (c) 2006, 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.gmf.editor.application; |
| |
| import org.eclipse.equinox.app.IApplication; |
| import org.eclipse.equinox.app.IApplicationContext; |
| import org.eclipse.swt.widgets.Display; |
| import org.eclipse.ui.PlatformUI; |
| |
| /** |
| * @generated |
| */ |
| public class TaiPanApplication implements IApplication { |
| |
| /** |
| * @generated |
| */ |
| public Object start(IApplicationContext context) throws Exception { |
| Display display = PlatformUI.createDisplay(); |
| try { |
| int returnCode = PlatformUI.createAndRunWorkbench(display, new DiagramEditorWorkbenchAdvisor()); |
| if (returnCode == PlatformUI.RETURN_RESTART) { |
| return IApplication.EXIT_RESTART; |
| } |
| return IApplication.EXIT_OK; |
| } finally { |
| display.dispose(); |
| } |
| } |
| |
| /** |
| * @generated |
| */ |
| public void stop() { |
| } |
| } |