blob: 33a8c1beb940910c95e47072d22cf468b70afe04 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ant.internal.ui.preferences;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
public interface IAntBlockContainer {
/**
* Sets the error message for the container. May be <code>null</code> to remove the error message.
*
* @param message
* A string error message or <code>null</code>
*/
public void setErrorMessage(String message);
/**
* Sets the message for the container. May be <code>null</code> to remove the message.
*
* @param message
* A string message or <code>null</code>
*/
public void setMessage(String message);
/**
* Creates and returns a properly configured push button with the supplied label
*
* @param parent
* The composite parent of the button
* @param label
* The button label
*
* @return button the created button
*/
public Button createPushButton(Composite parent, String label);
/**
* Notifies the container that state has changed.
*/
public void update();
}