blob: f4f7ff66492dcc90f94fd2159055b8f9dfb5a47b [file] [log] [blame]
/*******************************************************************************
* 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.core.runtime.IStatus;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
/**
*
* @since 1.0
*/
public interface IServerEditorSection {
/**
* Initialize the section.
*
* @param site the editor site
* @param input the editor input
*/
public void init(IEditorSite site, IEditorInput input);
/**
* Create the section.
*
* @param parent the parent composite
*/
public void createSection(Composite parent);
/**
* Disposes of the section.
*/
public void dispose();
/**
* Return the error message for this page.
*
* @return the error message
*/
public String getErrorMessage();
/**
* Returns error or status messages that will be displayed when the
* server resource is saved. If there are any error messages, the
* user will be unable to save the editor.
*
* @return a status object with code <code>IStatus.OK</code> if this
* server can be saved, otherwise a status object indicating why
* it can't be
*/
public IStatus[] getSaveStatus();
}