1 package net.sourceforge.phpdt.externaltools.group;
3 /**********************************************************************
4 Copyright (c) 2002 IBM Corp. and others. All rights reserved.
5 This file is made available under the terms of the Common Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/cpl-v10.html
10 **********************************************************************/
12 import org.eclipse.jface.dialogs.IMessageProvider;
13 import org.eclipse.swt.layout.GridData;
14 import org.eclipse.swt.widgets.Button;
17 * Represents the API for a group of visual components to access the dialog page
20 * This interface is not intended to be extended nor implemented by clients.
23 public interface IGroupDialogPage extends IMessageProvider {
25 * Sets the <code>GridData</code> on the specified button to be one that
26 * is spaced for the current dialog page units.
29 * the button to set the <code>GridData</code>
30 * @return the <code>GridData</code> set on the specified button
32 public GridData setButtonGridData(Button button);
35 * Sets the message for this page with an indication of what type of message
38 * The valid message types are one of <code>NONE</code>,
39 * <code>INFORMATION</code>, <code>WARNING</code>, or
44 * the message, or <code>null</code> to clear the message
48 public void setMessage(String newMessage, int newType);
51 * Updates the page's valid state using the group's current valid state.
52 * This will cause the dialog's buttons dependent on the page's valid state
53 * to update to reflect the new state.
55 public void updateValidState();
58 * Converts a height in characters to a height in pixels.
61 * the height in characters to be converted
62 * @return the corresponding height in pixels
64 public int convertHeightHint(int chars);