| /******************************************************************************* |
| * Copyright (c) 2003, 2005 IBM Corporation and others. |
| * 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: |
| * IBM Corporation - Initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.server.ui.editor; |
| |
| import org.eclipse.ui.IEditorPart; |
| |
| import org.eclipse.wst.server.core.IServerWorkingCopy; |
| /** |
| * |
| * @since 1.0 |
| */ |
| public abstract class ServerEditorPartFactoryDelegate { |
| /** |
| * Returns true if this editor page should be visible with the given |
| * server and configuration combination. This allows (for |
| * instance) complex configuration pages to only be shown when used |
| * with non-unittest servers. |
| * |
| * @param server the server being edited |
| * @return <code>true</code> if the page should be displayed, or |
| * <code>false</code> otherwise |
| */ |
| public boolean shouldCreatePage(IServerWorkingCopy server) { |
| return true; |
| } |
| |
| /** |
| * Create the editor page. |
| * |
| * @return the editor page |
| */ |
| public abstract IEditorPart createPage(); |
| } |