| package org.eclipse.wst.server.ui.internal.editor; |
| /********************************************************************** |
| * Copyright (c) 2003 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM - Initial API and implementation |
| **********************************************************************/ |
| import org.eclipse.ui.IEditorPart; |
| |
| import org.eclipse.wst.server.core.IServer; |
| import org.eclipse.wst.server.core.IServerConfiguration; |
| import org.eclipse.wst.server.ui.editor.IServerEditorPartFactoryDelegate; |
| /** |
| * |
| */ |
| public class OverviewEditorFactory implements IServerEditorPartFactoryDelegate { |
| /* |
| * @see IServerEditorPartFactoryDelegate#shouldCreatePage(IServer, IServerConfiguration) |
| */ |
| public boolean shouldCreatePage(IServer server, IServerConfiguration configuration) { |
| return true; |
| } |
| |
| /* |
| * @see IServerEditorPartFactoryDelegate#createPage() |
| */ |
| public IEditorPart createPage() { |
| return new OverviewEditorPart(); |
| } |
| } |