blob: 108279ffb8b3b16e11976fa0b3fd881d28e2581c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 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.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();
}